by esperent · 1y ago · 0 comments
data-animate - Animates element attributes over time.
data-on-resize - Runs an expression on element resize.
data-scroll-into-view - Scrolls an element into view.
If these are footguns then they can't be designed very well. I also don't think you can say that they'd only appeal to a small group.I don't have any problem with them charging for whatever they want to. But let's not make up excuses.
2. You should be using data-on to listen to the window level resize event (which doesn't require a pro plugin).
3. Scroll element into view can be replicated with data-on-load="el.scrollIntoView()"
The main benefit of pro is supporting the project.
CSS can only animate appearance, not HTML attributes like the `value` of a `<meter>`
> You should be using data-on to listen to the window level resize event
That event is fired when the window is resized, not when an element is resized