jQuery side Santa sliding panel
The jQuery side Santa Claus sliding panel is a full-screen snowflake scene animation based on jQuery+CSS3.
var ww = 0;
var wh = 0;
var maxw = 0;
var minw = 0;
var maxh = 0;
var textShadowSupport = true;
var xv = 0;
var snowflakes = ["\u2744", "\u2745", "\u2746"];
var prevTime;
var absMax = 200;
var flakeCount = 0;
$(init);
function init() {
var detectSize = function() {
ww = $(window).width();
wh = $(window).height();
maxw = ww + 300;
minw = -300;
maxh = wh + 300;
};
detectSize();
$(window).resize(detectSize);
if (!$('body').css('textShadow')) {
textShadowSupport = false;
}
/* Should work in Windows 7 /*
if (/windows/i.test(navigator.userAgent))
{
snowflakes = ['*']; // Windows sucks and doesn't have Unicode chars installed
//snowflakes = ['T']; //No FF support for Wingdings
}
*/
// FF seems to just be able to handle like 50... 25 with rotation
// Safari seems fine with 150+... 75 with rotation
var i = 50;
while (i--) {
addFlake(true);
}
prevTime = new Date().getTime();
setInterval(move, 50);
}
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
In WEB development, sometimes it is necessary to set up a control panel on the page. It is not displayed by default. When the user needs it, the panel display can be triggered by pressing a button. A common one is the page side slide-out panel effect. This article will use the jQuery plug-in and combine it with examples to introduce the panel sliding display effect.
27 Oct 2023
HTML, CSS, and jQuery: Build a beautiful sliding panel effect. In web design, sliding panels are a common interaction method that displays more content through sliding operations and increases user experience. This article will introduce how to use HTML, CSS and jQuery to build a beautiful sliding panel effect, and provide specific code examples. The sliding panel effects mainly involve three aspects of knowledge: HTML, CSS and jQuery. First, we need to create a basic structure using HTML. Below is a
21 Nov 2017
jquery implements PC-side sliding verification. This plug-in can be used in our projects. Friends who are interested in jquery can study it and provide the source code for free~ This is also a way for us to learn jquery.
27 Oct 2023
HTML, CSS, and jQuery: Technical Guidelines for Implementing Sliding Panel Effects With the popularity of mobile devices and the development of web applications, sliding panels, as a popular interaction method, are becoming more and more common in web design. By implementing the sliding panel effect, we can display more content in a limited space and improve the user experience. This article will introduce in detail how to use HTML, CSS and jQuery to achieve the sliding panel effect, and provide specific code examples. HTML Structure First, we need to create a basic
16 May 2016
Side-sliding menus are widely used in website design, and this type of menu can be seen on many websites. This article introduces jQuery CSS to implement a side-sliding navigation menu code. Friends who need it can refer to it.
16 May 2016
This article mainly introduces the jQuery implementation of the dark QQ customer service effect code that can be displayed on the right side and can be swiped to the left. It involves the implementation skills of jQuery controlling the dynamic transformation of page element styles. It has certain reference value. Friends in need can refer to it.
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