Thursday, 31 July 2014 12:05

On scroll animations

Written by
Rate this item
(0 votes)

In the SJ Plus v2 template we have implemented the animation engine based on the scrollReveal.js script. This script makes creating elements onscroll animations very simple to define.

Thanks to this script you can describe an animation using natural language.

Description of the animation is placed in the data-scroll-reveal attribute:

<!-- These 3 lines are equivalent -->
<div data-scroll-reveal="enter left and move 50px over 1.33s"> Foo </div>
<div data-scroll-reveal="enter from the bottom after 1s"> Bar </div>
<div data-scroll-reveal="wait 2.5s and then ease-in-out 100px"> Baz </div>

The full description of the syntax is available on the project documentation page

Read 4379 times Last modified on Wednesday, 30 July 2014 14:13
More in this category: « FAQ

About us

โรงเรียนกอบกาญจน์ศึกษามูลนิธิ

  • 490/14 ถ.เพชรเกษม ต.หาดใหญ่

  • Email: Kobkarn2498@hotmail.com

  • Tel : 074-244038,074-246977

 

Last posts

Visitorcounter

Today 2

Yesterday 10

Week 78

Month 48

All 75266