1.0.3 • Published 2 years ago

@natureslaboratory/animations v1.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

animations

A simple scroll animations library for websites. Copy the styles from /css/animations.css into your stylesheet, or link it directly.

Classes:

  • c-animated - The element to watch.
  • c-animated__child - The child element of c-animated. All children will be animated in when the c-animated element is animated.
    • data-animation-delay - Add a delay to a child element animation.
  • c-animated(__child) +
    • --fade
    • --fade-up
    • --fade-down
    • --fade-left
    • --fade-right

For example:

<div class="c-animated">
  <p class="c-animated__child c-animated__child--fade">
    I'll be animated right-away!
  </p>
  <p class="c-animated__child c-animated__child--fade-up data-animation-delay="500">
    I've got a delay!
  </p>
</div>

<div class="c-animated c-animated--fade">
  <h1>Hello There</h1>
</div>
1.0.3

2 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago