CSS3 Transitions on grid
How do I make an css3 transitions on grid?
What is a css3 transitions on grid? How do you make a css3 transitions on grid? This script and codes were developed by Renaud Tertrais on 12 August 2022, Friday.
CSS3 Transitions on grid - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>CSS3 Transitions on grid</title> <link href="//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.min.css" rel="stylesheet">
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.0-wip/css/bootstrap.min.css">
<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0-wip/js/bootstrap.min.js"></script> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="btn-group"> <button type="button" class="btn btn-default" id="minus"><span class="icon-caret-left"></span></button> <button type="button" class="btn btn-default" id="nb">3</button> <button type="button" class="btn btn-default" id="plus"><span class="icon-caret-right"></span></button>
</div> <button class="btn btn-default" id="reset">reset</button> <button class="btn btn-primary" id="add">add one</button><br /><br />
<div class="row"> <div class="col-xs-3 elt">1</div> <div class="col-xs-3 elt">2</div> <div class="col-xs-3 elt">3</div> <div class="col-xs-3 elt">4</div> <div class="col-xs-3 elt">5</div> <div class="col-xs-3 elt">6</div> <div class="col-xs-3 elt">7</div> <div class="col-xs-3 elt">8</div> <div class="col-xs-3 elt">9</div> <div class="col-xs-3 elt">10</div> <div class="col-xs-3 elt">11</div> <div class="col-xs-3 elt">12</div> <div class="col-xs-3 elt">13</div> <div class="col-xs-3 elt">14</div> <div class="col-xs-3 elt">15</div> <div class="col-xs-3 elt">16</div> <div class="col-xs-3 elt">17</div> <div class="col-xs-3 elt">18</div> <div class="col-xs-3 elt">19</div> <div class="col-xs-3 elt">20</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>
CSS3 Transitions on grid - Script Codes CSS Codes
body{ padding: 20px;
}
.elt{ border:1px solid #CCC; padding:10px 0; text-align: center; font-size: 24px; background-color: #DDD; transition: width .5s, border-width .5s, font-size .5s, padding .5s; cursor:pointer;
}
.elt.off{ opacity:0;
}
.elt.hideMe{ width: 0px; padding: 0px; font-size: 0px; border-width:0px;
}
CSS3 Transitions on grid - Script Codes JS Codes
$(function(){ $('#reset').click(function(){ $(".elt").removeClass('hideMe') setTimeout(function(){ $(".elt").removeClass("off"); }, 1000); }); $('#add').click(function(){ var $elt = $(".elt"); var col = getColClass($elt); $(".row").append('<div class="col-xs-'+col+' elt">'+($elt.length+1)+'</div>'); }); $('body').delegate('.elt','click',function(){ $(this).addClass('off').addClass('hideMe'); }); $("#minus").click(function(){ var $elt = $(".elt"); var col = getColClass($elt); $elt.removeClass("col-xs-"+col); col--; if(col>6)col=6; if(col==5)col=4; col = Math.max(1,col); $elt.addClass("col-xs-"+col); majNB(col); }); $("#plus").click(function(){ var $elt = $(".elt"); var col = getColClass($elt); $elt.removeClass("col-xs-"+col) col++; if(col>6)col=12; if(col==5)col=6; $elt.addClass("col-xs-"+col); majNB(col); }); $("#nb").click(function(){ var $elt = $(".elt"); var col = getColClass($elt); $elt.removeClass("col-xs-"+col) col++; if(col==13)col=1; if(col>6)col=12; if(col==5)col=6; $elt.addClass("col-xs-"+col); majNB(col); });
});
function majNB(col){ $("#nb").text(col);
}
function getColClass(elt){ var rgxCol = /col-[A-z]+-[0-9]+/; return parseInt((rgxCol.exec(elt.eq(0).attr("class"))+"").replace(/col-[A-z]+-/,""));
}
Developer | Renaud Tertrais |
Username | renaudtertrais |
Uploaded | August 12, 2022 |
Rating | 3 |
Size | 2,404 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 |
Pure CSS albums gallery | 2,978 Kb |
A Pen by Renaud Tertrais | 3,033 Kb |
Pure CSS3 arrow icons | 4,030 Kb |
Console | 3,320 Kb |
React-draggable | 2,539 Kb |
Angular JS - Basic app | 2,394 Kb |
Images gallery with CSS3 transitions | 2,356 Kb |
Buttons wip... | 4,057 Kb |
React Flat Gradient | 5,268 Kb |
TCP Brut Force | 4,629 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 |
Hovers with popups | Zacharyolson | 2,380 Kb |
A Bouncy Menu Toggle | Billyysea | 4,563 Kb |
CSS Gem Badge | Orchard | 3,335 Kb |
CMP5-Opdracht15 | SannevanGastel | 2,733 Kb |
Knob rotation | Alemesre | 2,122 Kb |
A Pen by Jess | Jessamyne | 5,100 Kb |
Barber Shop | Bhlaird | 6,270 Kb |
BlueBox Fork | Huskynation | 12,675 Kb |
3D-box | Parthviroja | 2,346 Kb |
A vuejs widget | Chrgl86 | 2,869 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!