pqina / flip

⏳ The online version of the classic flip clock
https://pqina.nl/flip/
MIT License
892 stars 87 forks source link

Layout of "horizontal fill" does not seem to work with the API #53

Open donaldmac opened 2 years ago

donaldmac commented 2 years ago

The code I am using is:

        var tick = Tick.DOM.create({
        value: "Asdfg",
        view:
        // definition for top level tick element
        {   
            children:[
            // presenter object
            {
                root: 'div',
                repeat: true,
                layout: 'horizontal fit',
                transform: 'upper -> split -> delay(random, 100, 150)',
                children: [
                    // presenter object
                    {
                        view: 'flip',
                        transform: 'ascii -> arrive -> round -> char(a-zA-Z)'
                    }
                ]
            }
            ]   
        }
        });

        window.document.body.appendChild(tick.root);