VelocityJS, fade on scroll
How do I make an velocityjs, fade on scroll?
What is a velocityjs, fade on scroll? How do you make a velocityjs, fade on scroll? This script and codes were developed by Eduard Mayer on 13 July 2022, Wednesday.
VelocityJS, fade on scroll - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>VelocityJS, fade on scroll</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <body> <nav class="js-animate-on-scroll"></nav> <footer></footer> <button class="js-animate-on-scroll"></button>
</body> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='http://cdn.jsdelivr.net/velocity/1.2.2/velocity.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
VelocityJS, fade on scroll - Script Codes CSS Codes
nav { position: fixed; width: 100%; height: 80px; top: 0; left: 0; background: red; display: none;
}
button { position: fixed; height: 70px; width: 80px; background: blue; border: 0; right: 10px; bottom: 30px; display: none;
}
body { height: 1200px;
}
footer { position: fixed; bottom: 0; left: 0; width: 100%; height: 60px; background: lightblue;
}
VelocityJS, fade on scroll - Script Codes JS Codes
var $scrolled = false;
$('.js-animate-on-scroll').bind('showelement hideelement');
$(window).on('scroll', function() { var y = $(document).scrollTop(); var eventh; if (y > 100) { $('footer').html('reached'); eventh = 'showelement'; } else { $('footer').html('nope'); eventh = 'hideelement'; } $('.js-animate-on-scroll').trigger(eventh);
});
$('.js-animate-on-scroll') .on('showelement', function() { if(!$(this).is(':visible')) { $(this).velocity('stop'); $(this).velocity('fadeIn'); } }) .on('hideelement', function() { if($(this).is(':visible')) { $(this).velocity('stop'); $(this).velocity('fadeOut'); } });
![VelocityJS, fade on scroll - Script Codes](http://shots.codepen.io/codewunder/pen/gbjKzO-512.jpg)
Developer | Eduard Mayer |
Username | codewunder |
Uploaded | July 13, 2022 |
Rating | 3 |
Size | 2,296 Kb |
Views | 58,696 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
A Pen by Eduard Mayer | 2,381 Kb |
Social Slides | 2,985 Kb |
Responsive GTA V Slider | 2,854 Kb |
A Pen by Eduard Mayer | 2,130 Kb |
Whatsapp PTT Animation | 9,106 Kb |
Animated Ubuntu Touch-styled checkboxes | 3,420 Kb |
Scrollable see-through headline | 3,171 Kb |
Social Sharing Buttons | 2,711 Kb |
Infotype SVG Animation | 5,309 Kb |
Enlarge text with buttons and js, with limited max- and min sizes | 1,756 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Rrremark.com Overlay Highlighter | Derickruiz | 4,438 Kb |
Hoi hoi | JohnTheCat | 7,248 Kb |
Prism | Pyrografix | 2,843 Kb |
Progressively reveal dots on a Bezier curve | GreenSock | 2,489 Kb |
Flex layout example | Mofny | 1,663 Kb |
FCC Portfolio | Cmwebby | 4,304 Kb |
CSS3 keyframe onload animation. | Samueljseay | 1,706 Kb |
Weird glowy CSS3 game | Toneworm | 3,684 Kb |
Pure CSS Read More Arrow | Zephyr | 1,747 Kb |
Spin | Elalemanyo | 8,262 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!