A Pen by maharajan
How do I make an a pen by maharajan?
What is a a pen by maharajan? How do you make a a pen by maharajan? This script and codes were developed by Maharajan on 26 January 2023, Thursday.
A Pen by maharajan - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>A Pen by maharajan</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="slider"> <div class="slide active"></div> <div class="slide"></div> <div class="slide"></div> <div class="slide"></div>
</div>
<div class="navigate previous">previous</div>
<div class="navigate next">Next</div> <script src='https://code.jquery.com/jquery-2.2.4.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
A Pen by maharajan - Script Codes CSS Codes
.slider
{ width:100%; height:auto; position:relative; overlfow:hidden;
}
.slide
{ width:100%; height:200px; background:green; display:none; transition:all .5s ease; position:absolute; left:100%;
}
.slide:first-child
{ display:block; left:0px;
}
.slide:nth-of-type(2)
{ background:blue;
}
.slide:nth-of-type(3)
{ background:orange;
}
.slide:nth-of-type(4)
{ background:gold;
}
.navigate
{ width:100px; padding:10px 5px; font-family:sans-serif; background: orange; border-radius:5px; margin-top: 220px; text-align:center;cursor:pointer; border:2px solid #fff;
}
.navigate.previous
{ float:left;
}
.slide.active
{ left:0px;
}
.navigate.next
{ float:right;
}
.navigate:hover
{ border:2px solid orange; background:#fff;
}
A Pen by maharajan - Script Codes JS Codes
$(function() {
var left;
$('.next').on('click',function() {
var getposition=parseInt($('.active').index())+1; if(getposition != $('.slide').length) { var nextposition=getposition+1; if(getposition==1) { left='-101%'; } $('.slide:nth-of-type('+getposition+')').animate({'left':left},100).removeClass('active'); $('.slide:nth-of-type('+nextposition+')').show().animate({'left':'0px'},100).addClass('active'); } });
$('.previous').on('click',function() {
var getposition=parseInt($('.active').index())+1;
if(getposition != 1) { var nextposition=getposition-1; if(getposition==1) { left='0px'; } $('.slide:nth-of-type('+getposition+')').animate({'left':'101%'},100).removeClass('active'); $('.slide:nth-of-type('+nextposition+')').show().animate({'left':'0px'},100).addClass('active'); }
}); });
Developer | Maharajan |
Username | mhrjnsa1 |
Uploaded | January 26, 2023 |
Rating | 3 |
Size | 2,134 Kb |
Views | 10,120 |
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 |
Drop down options disable | 1,723 Kb |
Simple register | 2,505 Kb |
Boom | 1,794 Kb |
Border hover effect | 1,667 Kb |
Locator | 1,669 Kb |
Parallax slider | 1,936 Kb |
Memory game | 2,424 Kb |
Hover input | 2,148 Kb |
Text appearance | 0 Kb |
Simeple snake design | 1,913 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 |
Eunice A | Ejbronze | 2,203 Kb |
Pomodoro Clock | Yas46 | 3,328 Kb |
Css3 loader | Clknap | 2,391 Kb |
Glowing Pulse Form | Jackrugile | 2,542 Kb |
Menu | Vivi_Lai | 1,210 Kb |
Promodoro | Bencarp | 1,712 Kb |
Mobile Nav Menu | AliKlein | 4,745 Kb |
Playing with FlexBox | _Billy_Brown | 3,162 Kb |
Automatic scroll | Skeurentjes | 4,042 Kb |
Find The Penguin | Lelder | 2,212 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!