JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q50093F
  • License ISC

A shorthand SASS mixin for your animation tweenings

Package Exports

  • tween-sass
  • tween-sass/index.sass

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (tween-sass) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

tween-sass

tween-sass is a SASS single code-line mixin that delivers the possibility for chaining multiple tween components to one tween animation

Usage

  1. Install tween-sass package npm install tween-sass --save-dev
  2. Define mixin on your SASS file @use "tween-sass" as *
  3. Define your animation tweening chain on your element
  4. Run animation with adding ".is--tweening" class to your parent or root element

Custom Configuration

@use "tween-sass" as * with ($parent: "#flyTarget", $activeClass: ".flyContentActive")

Tween Components

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

Ideation

  • Use tween-group(tween, index, length) mixin for a dynamic offset calculating depending of multiple tweens