Author: | crazychicken |
---|---|
Views Total: | 976 views |
Official Page: | Go to website |
Last Update: | July 13, 2018 |
License: | MIT |
Preview:

Description:
The t-scroll JavaScript library lets you apply more than 45 pretty cool animations to any elements when they appear in the viewport.
How to use it:
Install it via NPM and import the t-scroll into your web project.
$ npm install t-scroll
Or include the t-scroll’s JavaScript and CSS files on the html page as this:
<link rel="stylesheet" href="/path/to/t-scroll.min.css"> <script src="/path/to/t-scroll.min.js"></script>
Add an animation of your choice to the element using CSS class. All available animations:
- bounceIn
- bounceOut
- bounceUp
- bounceDown
- bounceLeft
- bounceRight
- fadeIn
- fadeUp
- fadeDown
- fadeLeft
- fadeRight
- fadeUpBig
- fadeDownBig
- fadeLeftBig
- fadeRightBig
- flip
- flipX
- flipY
- lightSpeedUp
- lightSpeedRight
- lightSpeedDown
- lightSpeedLeft
- rollUp
- rollRight
- rollDown
- rollLeft
- rotate
- rotateUpLeft
- rotateUpRight
- rotateDownLeft
- rotateDownRight
- slideUp
- slideDown
- slideLeft
- slideRight
- zoomIn
- zoomInUp
- zoomInLeft
- zoomInDown
- zoomInRight
- zoomOut
- zoomOutUp
- zoomOutLeft
- zoomOutDown
- zoomOutRight
<div class="zoomIn">Element 1</div> <div class="bounceIn">Element 2</div>
Initialize the t-scroll to animate the elements when they come into view.
Tu.t_scroll({ 't_element': '.bounceIn' })
Sometimes you might need to set a timeout to the animation:
<div class="bounceIn" t_show="1">Element</div>
All possible options which can be passed during init.
- t_elemet: target element
- t_animate: animation type
- t_show: timeout in seconds
- t_position: Default: 0
- t_delay: delay time
- t_infinite: loop animations?
- t_function: linear ease ease-in ease-out ease-in-out step-start step-end initial inherit
Changelog:
- v1.1.10 (07/13/2018)
update fix incompatible with IE
oh i feel interesting when i use it. Tks !
Yes, i agree with you!
i think you need update demo view, i feel it simple …!
i think you can update layout demo, i need clear and detail more than…
really helpful, bro