/
githubmirror
/
materialize
Обзор
Документация
Войти
/
githubmirror
/
materialize
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v0.97.6
jade/scrollFire.jade
34 строки
1 KB
Chang Alan
Scrollfire fix
30 мар 2016, 04:25
30 мар 2016, 04:25
b7a1803
Код
Авторство
О чём код?
- var no_nav = false - var page = "ScrollFire" doctype html html(lang="en") head include _head.jade body include _navbar.jade main include page-contents/scrollfire_content.html include _footer.html include _scripts.html //- Scrollfire Script script(type='text/javascript'). var options = [ {selector: '#staggered-test', offset: 50, callback: function() { Materialize.toast("This is our ScrollFire Demo!", 1500); $("#call-1").velocity({ backgroundColor: "#333", color: "#ef5350" }, {duration: 500}); } }, {selector: '#staggered-test', offset: 205, callback: function() { Materialize.toast("Please continue scrolling!", 1500); $("#call-2").velocity({ backgroundColor: "#333", color: "#ef5350" }, {duration: 500}); } }, {selector: '#staggered-test', offset: 500, callback: function() { Materialize.showStaggeredList("#staggered-test"); $("#call-3").velocity({ backgroundColor: "#333", color: "#ef5350" }, {duration: 500}); } }, {selector: '#image-test', offset: 500, callback: function() { Materialize.fadeInImage("#image-test"); $("#call-4").velocity({ backgroundColor: "#333", color: "#ef5350" }, {duration: 500}); } } ]; Materialize.scrollFire(options);