smoove.js--Gorgeous CSS3 Scroll Effects

It's really popular to apply CSS3 moving effects in nowadays website,which looks amazing compare to the static status.

The official Github here

Step1:
link the bootstrap I've used in this demo:
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-alpha.6/css/bootstrap-grid.css">
link the script files of jQuery and smoove from cdn in the end of body section:
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
 <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery-smoove/0.2.9/jquery.smoove.min.js"></script>

Step2:

HTML
html
Because of the bootstrap layout, I used the class row and col-md-4 to seperate the sections.

All the items you want css3 fancy effects should have the attributes setting.

Then doing a little style for good looking in the head.

css
Step3:
JS

js
There are a lot options for smoonv.

Options

NameTypeDefaultDescription
offsetinteger or string150Distance to the bottom of the screen before object glides into view e.g. 10%.
opacityinteger (0-100)0The opacity of the object before it comes into view.
perspectiveinteger10003D perspective in pixels.
transformOriginstring50% 50%Origin of the transform in pixel, percentage or keyword (left, right, top or bottom).
skewYanglenone2D skew along Y-axis e.g. 90deg.
movestringnone2D move along the X- and the Y-axis e.g. 100px,50%.
move3dstringnone3D move along the X-, Y- and the Z-axis e.g. 10px,10px,10px.
moveXstringnoneMove the object along its X axis e.g. 10px or 10%.
moveYstringnoneMove the object along its Y axis e.g. 10px or 10%.
moveZstringnoneMove the object along its Z axis e.g. 10px or 10%.
rotatestringnone2D rotation e.g. 90deg.
rotate3dstringnone3D rotation along X-, Y- and Z-axis e.g. 1,1,1,90deg.
rotateXstringnone3D rotation along X-axis e.g. 90deg.
rotateYstringnone3D rotation along Y-axis e.g. 90deg.
rotateZstringnone3D rotation along Z-axis e.g. 90deg.
scaledecimal or stringnone2D scale on X- and Y-axis (x,y) (e.g. 2.5 or 2,0.5).
scale3dstringnone3D scale on X-, Y- and Z-axis (x,y,z) (e.g. 2,3,0.5).
scaleXdecimalnone2D scale on X-axis.
scaleYdecimalnone2D scale on Y-axis.
skewanglenone2D skew along X- and the Y-axis (e.g. 90deg,90deg).
skewXanglenone2D skew along X-axis e.g. 90deg.
skewYanglenone2D skew along Y-axis e.g. 90deg.







Popular posts from this blog

Fancyapps — easily build overlay windows with carousel

Meet Mantine: A TS-Based Open-Source React Components Library

Meet Tippy.js: The Complete Tooltip Popover Plugin