tween-sass is a SASS single code-line mixin that delivers the possibility for chaining multiple tween components to one tween animation
- Install tween-sass package
npm install tween-sass --save-dev
- Define mixin on your SASS file
@use "tween-sass" as *
- Define your animation tweening chain on your element
- Run animation with adding ".is--tweening" class to your parent or root element
@use "tween-sass" as * with ($parent: "#flyTarget", $activeClass: ".flyContentActive")
There is an overview of all existing components on http://projects.bminusg.de/tween-sass
@use "tween-sass" as *
#example
@include tween(slideInLeft, wait 2.5s, slideOutRight)
animation-iteration-count: infinite
- Use tween-group(tween, index, length) mixin for a dynamic offset calculating depending of multiple tweens