jQuery+CSS3+HTML5 blind dropdown
代码片段:
let memo = {};
let memoize = function(width, scale, lean) {
const memoKey = `${width}-${scale}-${lean}`;
if (!memo[memoKey]) {
const currentH = width * scale;
const result = {
leftSize: Math.sqrt(currentH ** 2 + (width * (0.5 - lean)) ** 2),
rightSize: Math.sqrt(currentH ** 2 + (width * (0.5 + lean)) ** 2),
leftAngle: Math.atan(currentH / ((0.5 - lean) * width)),
rightAngle: Math.atan(currentH / ((0.5 + lean) * width))
};
memo[memoKey] = result;
memoize.count++;
}
return memo[memoKey];
}
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
24 Apr 2018
This time I will bring you jquery+CSS3 to implement the drop-down navigation menu function. What are the precautions for jquery+CSS3 to implement the drop-down navigation menu function? The following is a practical case, let’s take a look.
16 May 2016
This is a very cool folding card drop-down list box effect made using jQuery and CSS3. Interested friends can refer to it.
16 May 2016
The editor has collected 13 useful CSS3, HTML5 and jQuery search form scripts to help you create a search box from scratch. I hope it can help everyone, let’s take a look together!
24 Nov 2016
Simple flashing effect of css3 elements (html5 jquery)
25 Jun 2018
This article mainly talks about the code to implement the music player (html5+css3+jquery). Friends who need it can refer to it.
25 Jun 2018
This is a very cool folding card drop-down list box effect made using jQuery and CSS3. Interested friends can refer to it.
16 May 2016
This article mainly talks about the code to implement the music player (html5 css3 jquery). Friends in need can refer to it.
16 May 2016
Drop-down navigation is often encountered when browsing the web. Remember that it was implemented using js in the past. However, what I will introduce next in this article is to use css3 html5 to implement it. If you are interested, don’t miss it. I hope it will learn from you after reading it. css3 helps
24 Jun 2016
HTML5 CSS3 JQuery to create a custom video player
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