jQuery+aos.js page scroll element animation library
code segment:
hljs.initHighlightingOnLoad();
$('.hero__scroll').on('click', function(e) {
$('html, body').animate({
scrollTop: $(window).height()
}, 1200);
});
All resources on this site are contributed by netizens or reprinted by major download sites. Please check the integrity of the software yourself! All resources on this site are for learning reference only. Please do not use them for commercial purposes. Otherwise, you will be responsible for all consequences! If there is any infringement, please contact us to delete it. Contact information: admin@php.cn
Related Article
16 May 2016
JQuery animated page scroll Back to top Animation special effects (compatible with Chrome), friends who are learning jquery can test it.
16 May 2016
This article mainly introduces the sample code of JS and JQUERY to obtain the page size, scroll bar position, and element position. Friends who need it can come here for reference. I hope it will be helpful to everyone.
31 Oct 2024
Animate Scroll to Specific Element on Button ClickTo jump or scroll to a specific position, div, or target on a page when a button is clicked, you...
23 Dec 2024
Smooth Scroll to an Element with jQueryIntroductionScrolling to specific elements on a webpage can enhance user experience and draw attention to...
03 Jan 2025
Scroll to an Element with jQueryWhen dealing with lengthy web pages, it's crucial to enable users to smoothly navigate to specific sections...
28 Dec 2024
Scrolling to an Element with jQueryIn the context of a web page with various elements, such as input fields, 's, and...
26 Apr 2023
In front-end development, we often need to use jQuery to handle some interactive effects and animation effects, such as animation effects when the mouse is hovering, animation effects when the page is loading, etc. But sometimes we need to set a delay time so that these effects can be better expressed. So, how does jQuery set a delay? This article will introduce this issue in detail. 1. Delay method in jQuery In jQuery, delay effect can be easily achieved by using the delay() method. The delay() method can be used
16 May 2016
jQuery UI CSS Framework is a style framework in jQuery UI. You can use jQuery Theme roller to generate the css style effects you want. We can use some frameworks of jQuery UI to develop plug-ins based on jQuery UI CSS Framework effects.
16 May 2016
animate() is a method in jquery that can be used to create animation effects. The animate() method in jquery adds good visual effects to that page.
Hot Tools
jQuery2019 Valentine's Day Confession Fireworks Animation Special Effects
A very popular jQuery Valentine's Day confession fireworks animation special effect on Douyin, suitable for programmers and technical geeks to express their love to the girl they love. No matter you choose to be willing or not, you have to agree in the end.
layui responsive animated login interface template
layui responsive animated login interface template
520 Valentine's Day confession web animation special effects
jQuery Valentine's Day Confession Animation, 520 Confession Background Animation
Cool system login page
Cool system login page
HTML5 tape music player-CASSETTE PLAYER
HTML5 tape music player-CASSETTE PLAYER