Search Our Site

咨询热线:400-105-1985(中国) +1-646-461-6123(美国) +44-20-8123-6609(英国)
Δημιουργία λογαριασμού
images/slide/wxh-slide01.jpg
40万
全球校友
37年
办学经验
18名
国家重要领导题词
9215门
视频课程
Our Scroll Reveal feature is powered by the script found here: https://github.com/julianlloyd/scrollReveal.js. The script allows you to add "data-sr" to HTML elements for on page scroll animations. We recommend adding to DIVs over SPAN etc as DIVs can move vs SPAN tags just fading in. Once you add the code to a DIV refresh a page or scroll down and it will animate in. It will only do this once until you refresh the page again. The great feature about the script is you can use plain English to describe how you'd like to animate your HTML element.

Example of this in action (refresh this page if you didn't see it already):

enter left, over 1.33s, move 100px
enter bottom, wait 1s, move 100px
enter left move 500px, over 1.33s, wait 2.5s


Code used for the above:

<div data-sr="enter left and move 50px over 1.33s"> Enter from the left and move up 50px in 1.33 seconds. </div>

<div data-sr="enter from the bottom after 1s"> Enter from the bottom after 1 second. </div>

<div data-sr="wait 2.5s and then ease-in-out 100px"> Wait 2.5 seconds and then ease-in-out 100px. </div>

Usage:

For a lengthier explanation on this visit the following page: https://github.com/julianlloyd/scrollReveal.js
想语音咨询吗?欢迎拨打:
400-160-1985 (中国)
302-476-2656 (美国)

专科、本科、硕士、博士、研修、研学
全球艺术远程教育祖庭

优秀校友

Prev
Next
中国书画国际大学的课程让我掌握了水墨山水画的创作技法。非常感谢教授们的细心指导!
通过在中国书画国际大学的学习,让我可以用水墨的语言来进行艺术表达,希望能与大家共同进步!
Maria Helfcoff
中国画专业
Brian Waldof
中国画专业