Phone-esque Accordian
How do I make an phone-esque accordian?
What is a phone-esque accordian? How do you make a phone-esque accordian? This script and codes were developed by Jerusha Johnson on 22 October 2022, Saturday.
Phone-esque Accordian - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Phone-esque Accordian</title> <link href="//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css" rel="stylesheet"> <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="accordian-wrapper"> <div class="toolbar"> <div class="viewmode"> <i class="icon-fullscreen icon-large"></i> </div> <div class="viewmode"> <i class="icon-file-text icon-large"></i> </div> <div class="viewmode"> <i class="icon-external-link icon-large"></i> </div> </div> <div class="participation-wrapper"> <div class="card question-wrapper"> <div class="card-title"> <i class="icon-question icon-large"></i> <p>Questions</p> </div> <i class="card-icon icon-chevron-down"></i> </div> <div class="card note-wrapper"> <div class="card-title"> <i class="icon-pencil icon-large"></i> <p>Notes</p> </div> <i class="card-icon icon-chevron-down"></i> </div> <div class="card chat-wrapper"> <div class="card-title"> <i class="icon-reorder icon-large"></i> <p>Chat</p> </div> <i class="card-icon icon-chevron-down"></i> </div> </div>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Phone-esque Accordian - Script Codes CSS Codes
.accordian-wrapper{ margin:20px auto; width:300px;
}
.participation-wrapper{ position: relative; overflow: hidden; background-color: #eee; width: 300px; height: 120px;
}
.question-wrapper{ background-color: #333; position: absolute; height: 120px; width: 300px; bottom: 0;
}
.note-wrapper{ background-color: #666; position: absolute; height: 80px; width: 300px; bottom: 0;
}
.chat-wrapper{ background-color: #999; position: absolute; height: 40px; width: 300px; bottom: 0;
}
.card-full{ height: 200px;
}
.card-title{ height: 30px; float: left;
}
.card-title p,
.card-title i{ margin:12px; color: #fff; float: left;
}
.card-icon{ float:right; margin: 10px; color: #fff;
}
.card{ -webkit-box-shadow: 0 8px 6px 6px black; -moz-box-shadow: 0 8px 6px 6px black; box-shadow: 0 8px 6px 6px black;
}
.toolbar{ width: 300px; height: 40px; background-color: #333;
}
.viewmode{ border: 1px solid #222; width:98px; height:38px; float:left; position: relative; background: #333; transition: background .5s ease;
} .viewmode i{ position:absolute; color:#fff; top: 10px; left:35px; }
.viewmode:hover{ background:#222;
}
Phone-esque Accordian - Script Codes JS Codes
function cardAnimate() { if (!$(this).hasClass('card-full') && !$('.participation-wrapper').hasClass('card-full')) { $(this).addClass('card-full'); $('.participation-wrapper').addClass('card-full'); $(this).children('.card-icon').removeClass('icon-chevron-down'); $(this).children('.card-icon').addClass('icon-chevron-up'); }else if ($(this).hasClass('card-full') && $('.participation-wrapper').hasClass('card-full')) { $(this).removeClass('card-full'); $('.participation-wrapper').removeClass('card-full'); $(this).children('.card-icon').removeClass('icon-chevron-up'); $(this).children('.card-icon').addClass('icon-chevron-down'); }else if (!$(this).hasClass('card-full') && $('.participation-wrapper').hasClass('card-full')) { $('.card').removeClass('card-full'); $('.card').children('.card-icon').removeClass('icon-chevron-up'); $('.card').children('.card-icon').addClass('icon-chevron-down'); $(this).addClass('card-full'); $(this).children('.card-icon').removeClass('icon-chevron-up'); $(this).children('.card-icon').addClass('icon-chevron-down'); };
}
$('.card').on('click', cardAnimate);
Developer | Jerusha Johnson |
Username | bonzaipenguin |
Uploaded | October 22, 2022 |
Rating | 3 |
Size | 2,398 Kb |
Views | 12,144 |
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 |
TBI Thank You | 2,550 Kb |
Type Specimen | 2,414 Kb |
Photo Week Bug | 1,926 Kb |
Scaled Agile Card Heights | 2,113 Kb |
Mobile Calendar Test | 3,456 Kb |
Recreate ScrollSpy v1 | 3,692 Kb |
Medium-esque v2.0 | 2,335 Kb |
Pile of Letters | 2,120 Kb |
Wedding Announcement Idea | 2,506 Kb |
Moveable 8-bit | 2,063 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 |
React TODO | Enieste | 3,320 Kb |
HexMaze | Cantelope | 4,825 Kb |
Layout | X-gyba | 4,234 Kb |
A Pen by James Podles | Jpod | 2,656 Kb |
Retina canvas w. resize | Erikterwan | 1,882 Kb |
Text Looping Transition | Agelber | 5,619 Kb |
TweetBox with React JS | J0zelito | 3,325 Kb |
Segments mouse following | Nosir | 2,909 Kb |
Mosaic transition effect between two photos using jQuery | Stathisg | 2,518 Kb |
Web Spiral - p5.js | TWAIN | 2,183 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!