Feature Slider
How do I make an feature slider?
Based on the shot for Focus Lab: https://dribbble.com/shots/2310611-Feature-Slider-Motion. What is a feature slider? How do you make a feature slider? This script and codes were developed by Andy Lorimer on 22 July 2022, Friday.
Feature Slider - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Feature Slider</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div id="tabs"> <ul id="accordion"> <li> <a class="active" href="#tabs-1"> <div class="tag"> <div class="icon"> <div class="block"> <div class="circle"></div> </div> </div> <span class="title">Feature One</span> </div> </a> <div class="addon fadein"> <span> Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s. </span> <a class="para-a" href="#">Learn More</a> </div> </li> <li> <a href="#tabs-2"> <div class="tag"> <div class="icon"> <div class="block"> <div class="circle"></div> </div> </div> <span class="title">Feature Two</span> </div> </a> <div class="addon"> <span> Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s. </span> <a class="para-a" href="#">Learn More</a> </div> </li> <li> <a href="#tabs-3"> <div class="tag"> <div class="icon"> <div class="block"> <div class="circle"></div> </div> </div> <span class="title">Feature Three</span> </div> </a> <div class="addon"> <span> Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s. </span> <a class="para-a" href="#">Learn More</a> </div> </li> </ul> <div class="browser"> <div class="top-bar"> <div class="dot"></div> <div class="dot"></div> <div class="dot"></div> </div> <div id="tabs-1"></div> <div id="tabs-2"></div> <div id="tabs-3"></div> </div>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='http://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Feature Slider - Script Codes CSS Codes
@import url('http://fonts.googleapis.com/css?family=Open Sans:400,700|Montserrat');
body { margin: 0; padding: 0; font-family: 'Montserrat'; font-size: 13px; letter-spacing: 1px;
}
#tabs { width: 700px; display: flex; position: relative; margin: 0 auto; margin-top: 50px; height: auto; min-height: 200px; max-height: 600px; overflow: hidden;
}
ul { position: relative; display: inline-block; margin: 0; padding: 0; list-style-type: none; vertical-align: top; width: 50%;
}
ul li a { position: relative; display: block; width: 100%; text-decoration: none; color: #3b3b3b; border-top: solid 2px #e9e9e9; padding: 20px 5px; z-index: 1; opacity: .5; -webkit-transition: 0.3s ease; -moz-transition: 0.3s ease; -o-transition: 0.3s ease; transition: 0.3s ease;
}
ul li:focus, a:focus { outline: none;
}
ul li:nth-child(1) a { border-top: none;
}
ul li a.active { opacity: 1;
}
.para-a { font-weight: bold; margin-top: 10px; padding: 0; text-transform: uppercase; font-size: 11px; letter-spacing: 1px; border: none; font-family: 'Montserrat'; color: #2b2b2b;
}
.tag { position: relative; width: 100%;
}
.icon { position: relative; display: inline-block; width: 50px; height: 50px; background: #c7c7c7; border-radius: 100%; vertical-align: middle;
}
.block { position: absolute; width: 18px; height: 18px; vertical-align: middle; border: solid 2px #7b7b7b; border-radius: 5px; top: 50%; left: 50%; -webkit-transform: translate(-50%, -50%); -moz-transform: translate(-50%, -50%); -o-transform: translate(-50%, -50%); -ms-transform: translate(-50%, -50%); transform: translate(-50%, -50%);
}
.circle { position: absolute; padding: 2px; border: solid 2px #7b7b7b; border-radius: 100%; top: 50%; left: 50%; -webkit-transform: translate(-50%, -50%); -moz-transform: translate(-50%, -50%); -o-transform: translate(-50%, -50%); -ms-transform: translate(-50%, -50%); transform: translate(-50%, -50%);
}
.title { display: inline-block; text-transform: uppercase; font-weight: bold; padding: 0 10px; vertical-align: middle; color: #7b7b7b;
}
.addon { position: relative; width: 80%; top: -25px; margin-left: 70px; letter-spacing: 0; font-size: 13px; color: #9b9b9b; opacity: 0; font-family: 'Open Sans';
}
.addon.fadein { opacity: 1;
}
.browser { width: 45%; height: 95%; position: absolute; border-style: solid; border-width: 2px 0 2px 2px; border-color: #7b7b7b transparent #7b7b7b #7b7b7b; right: 0; border-radius: 10px 0 0 10px; overflow: hidden;
}
.top-bar { position: absolute; top: 0; left: 0; width: 100%; height: 20px; line-height: 20px; background: #fff; border-bottom: solid 2px #7b7b7b; z-index: 2;
}
.dot { position: relative; display: inline-block; padding: 4px; background: #c7c7c7; border-radius: 100%;
}
.dot:nth-child(1) { margin-left: 7px;
}
#tabs-1, #tabs-2, #tabs-3 { position: absolute; top: 0; right: 0; width: 100%; height: 100%;
}
#tabs-1 { background: #9b9b9b;
}
#tabs-2 { background: #c9c9c9;
}
#tabs-3 { background: #1b1b1b;
}
Feature Slider - Script Codes JS Codes
$(function() { $("#tabs").tabs({ show: { effect: "blind", direction: "right", duration: 300 } }); $( "#accordion" ).accordion(); var btn = $('#accordion li a'); var wrapper = $('#accordion li'); $(btn).on('click', function() { $(btn).removeClass('active'); $(btn).parent().find('.addon').removeClass('fadein'); $(this).addClass('active'); $(this).parent().find('.addon').addClass('fadein'); });
});
Developer | Andy Lorimer |
Username | andylorimer |
Uploaded | July 22, 2022 |
Rating | 4.5 |
Size | 3,003 Kb |
Views | 26,312 |
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 |
Masked.js | 3,037 Kb |
Interactive Button Editor | 4,062 Kb |
Sign-up Card | 2,945 Kb |
Random Spinning loader | 1,619 Kb |
Off-Canvas Menu | 2,794 Kb |
Searchbar with Navigation | 2,929 Kb |
Password Input | 2,548 Kb |
Social Icons Transition | 2,054 Kb |
Loading Animation | 1,840 Kb |
Scroll down button | 2,081 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 |
SVG Icons Template | Legofsalmon | 2,618 Kb |
Custom Select Element | Agrayson | 3,616 Kb |
Fireworks Show | Arianalynn | 3,048 Kb |
Animate elements with fixed gradient | Badabam | 4,406 Kb |
Slider for stackoverflow | KKOKU | 3,222 Kb |
Dribbble Inspired Registration Form | Lancebush | 2,358 Kb |
Scroll Arrow | Robooneus | 4,437 Kb |
CSS Letter animations | Sladix | 2,116 Kb |
Nice responsive team page | Infomiho | 3,139 Kb |
CSS only simple parallax scroll | Stanssongs | 3,708 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!