javascript - What does $(window).stellar do? -
i have code (it's not written me):
$(window).stellar({ horizontalscrolling: false, responsive: true });
now, i'm curious does. did comment didn't see changes, before ruin something, i'd know can decide whether keep in or not.
it seems activating plugin:
http://markdalgleish.com/projects/stellar.js/
its documentation says options do:
configuring offsets
stellar.js' powerful feature way aligns elements.
all elements return original positioning when offset parent meets edge of screen—plus or minus own optional offset. allows create intricate parallax patterns easily.
confused? see how offsets used on stellar.js home page. modify offsets elements @ once, pass in options:
$.stellar({ horizontaloffset: 40, verticaloffset: 150 });
Comments
Post a Comment