Expanding Info Box
How do I make an expanding info box?
What is a expanding info box? How do you make a expanding info box? This script and codes were developed by Sjmcpherson on 24 September 2022, Saturday.
Expanding Info Box - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Expanding Info Box</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div id="expand-box" class="expanded"> <div class="round-part"> <div class="wrapper"> <p>"Welcome to the wonderful world of entertainment, where art imitates life and people get famous." <span>CHARLIE TUNA (Jurassic 5)</span> </p> </div> </div> <a href="#" id="button">+</a>
</div> <script src="js/index.js"></script>
</body>
</html>
Expanding Info Box - Script Codes CSS Codes
#expand-box { position: absolute; bottom: 10px; font-family: Helvetica;
}
.round-part { position: absolute; left: 0; bottom: 0; width: 300px; height: 300px; border-radius: 50%; background-color: #293447; -webkit-transform: scale(0.15); box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2); transform: scale(0.15); -webkit-transform-origin: 0% 100%; transform-origin: 0% 100%; transition: all 0.6s ease-in-out;
}
.wrapper { width: 80%; height: 100%; padding: 0 10%; position: absolute; text-align: center; display: table;
}
.wrapper p { text-align: left; font: normal 1.1em/1.5em Georgia; display: inline-block; vertical-align: middle; display: table-cell; overflow: hidden; color: #ddddee; opacity: 0; transition: all 0.6s ease-in-out;
}
.wrapper p span { display: block; font: normal 100% arial; padding: 10px 0;
}
a { position: absolute; text-decoration: none; transition: all 0.6s ease-in-out; bottom: 0px; left: 10px; z-index: 999; font-size: 2.8em; text-align: center; color: #ddddee; cursor: pointer; transform: rotate(0deg);
}
.expanded .round-part { -webkit-transform: scale(1); transform: scale(1); border-radius: 5%;
}
.expanded .wrapper p { opacity: 1;
}
.expanded a { transform: rotate(315deg); color: #cc606f;
}
Expanding Info Box - Script Codes JS Codes
(function(){ var d = document; var expandBox=d.getElementById("expand-box"), button=expandBox.querySelector("#button"), expandedToggle; button.addEventListener('click',function(e){ if(!expandedToggle){ expandBox.setAttribute('class','expanded'); expandedToggle=true; }else{ expandBox.setAttribute('class',''); expandedToggle=false; } return false; });
})();
![Expanding Info Box - Script Codes](http://shots.codepen.io/sjmcpherson/pen/VYpJaK-512.jpg)
Developer | Sjmcpherson |
Username | sjmcpherson |
Uploaded | September 24, 2022 |
Rating | 3 |
Size | 2,992 Kb |
Views | 20,240 |
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 |
Blockquote design | 1,863 Kb |
CSS3 3D Shirt Flipper | 2,242 Kb |
A Pen by sjmcpherson | 2,105 Kb |
Rollover CSSS Blur Filter Image Gallery | 2,532 Kb |
File API demo | 2,178 Kb |
Display popup on first visit only | 2,094 Kb |
AngularJS View only DOM manipulation | 1,817 Kb |
CSS backface-visibility contact form | 4,686 Kb |
CSS Only Animated Tooltip | 3,218 Kb |
CSS animated notification badge | 3,231 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 |
E-mail Template | SoloMDFK | 4,871 Kb |
Basic HTML5 Structure | YuvarajTana | 1,289 Kb |
Basic 3D Fullscreen Transition | Apetrov | 3,270 Kb |
Improve | Gavra | 1,652 Kb |
Header Line Issue | Charlie-volpe | 1,768 Kb |
React JS Movie Info App | MTushar | 4,870 Kb |
Brown by pure CSS, no image, no javascript | Aaronchuo | 2,652 Kb |
Page Transitions in Backbone | Mikefowler | 3,691 Kb |
Flat iOS 7 Safari Icon | Rss | 3,332 Kb |
Table Exercise | Fresco | 9,585 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!