Animated Dropdowns with scaleY
How do I make an animated dropdowns with scaley?
What is a animated dropdowns with scaley? How do you make a animated dropdowns with scaley? This script and codes were developed by Andy Merskin on 10 August 2022, Wednesday.
Animated Dropdowns with scaleY - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Animated Dropdowns with scaleY</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="container"> <div class="dropdown"> <div class="dropdown-title" tabindex="0">Hello</div> <ul class="dropdown-menu"> <li class="dropdown-menu-item" tabindex="0">Hello</li> <li class="dropdown-menu-item" tabindex="0">World</li> <li class="dropdown-menu-item" tabindex="0">How</li> <li class="dropdown-menu-item" tabindex="0">Are</li> <li class="dropdown-menu-item" tabindex="0">You</li> </ul> </div>
</div>
</body>
</html>
Animated Dropdowns with scaleY - Script Codes CSS Codes
.container { width: 500px; margin: 50px auto;
}
.dropdown { position: relative; color: #ccc;
}
.dropdown ::-moz-selection { background-color: transparent;
}
.dropdown ::selection { background-color: transparent;
}
.dropdown-title { padding: 10px 15px; background-color: #222425; cursor: pointer; outline: none;
}
.dropdown-title:focus +.dropdown-menu { clip: rect(0 auto 400px 0);
}
.dropdown-title:focus +.dropdown-menu:after { -webkit-transform: scaleY(1); transform: scaleY(1);
}
.dropdown-title:focus +.dropdown-menu .dropdown-menu-item { opacity: 1;
}
.dropdown-menu { position: absolute; top: 100%; left: 0; right: 0; display: block; margin: 0; padding: 10px 0; list-style: none; clip: rect(0 auto 0px 0);
/* background-color red; */
/* visibility hidden */ -webkit-transition: clip 0.6s linear; transition: clip 0.6s linear;
}
.dropdown-menu:after { content: ''; position: absolute; z-index: -1; top: 0; bottom: 0; left: 0; right: 0; background-color: #1a1c1d; -webkit-transform: scaleY(0); transform: scaleY(0); -webkit-transform-origin: top left; transform-origin: top left; -webkit-transition: -webkit-transform 0.6s ease; transition: -webkit-transform 0.6s ease; transition: transform 0.6s ease; transition: transform 0.6s ease, -webkit-transform 0.6s ease;
}
.dropdown-menu-item { padding: 10px 15px; outline: none; cursor: pointer; opacity: 0; -webkit-transition: opacity 1s ease; transition: opacity 1s ease;
}
.dropdown-menu-item:hover { background-color: rgba(255,255,255,0.1);
}
Developer | Andy Merskin |
Username | andymerskin |
Uploaded | August 10, 2022 |
Rating | 3 |
Size | 2,507 Kb |
Views | 32,384 |
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 |
Vue List Transitions - Bug Test | 2,741 Kb |
Table Row Peek | 3,107 Kb |
Vue.js Recipe - Slideout Menu | 5,189 Kb |
A Pen by Andy Merskin | 4,844 Kb |
Vue.js Starter | 1,268 Kb |
GSS Transitions | 2,097 Kb |
SASS Easings | 2,426 Kb |
SVG Stroke Drawing Effect on Focus | 2,399 Kb |
Spotr - Basic Example | 3,875 Kb |
Wires Loading Animation | 3,813 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 |
A Pen by Patrick Cox | Pcridesagain | 2,899 Kb |
Hexagons | Ashmind | 4,360 Kb |
Learning canvas drawing | Aurer | 2,204 Kb |
Fixed Scrolling Nav Bar | Philsinatra | 0 Kb |
A Pen by Andrea Verlicchi | Verlok | 2,018 Kb |
Placeholder support for contentEditable elements, without JavaScript | Flesler | 1,863 Kb |
My Starter Kit For Codepen | Dkdesign | 2,012 Kb |
Mosaic transition effect between two photos using jQuery | Stathisg | 2,518 Kb |
Blockquote design | Sjmcpherson | 1,863 Kb |
CSS3 Fullscreen Background Slideshow | Leetech | 3,435 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!