Tree growth tests
How do I make an tree growth tests?
What is a tree growth tests? How do you make a tree growth tests? This script and codes were developed by Adam Orchard on 02 December 2022, Friday.
Tree growth tests - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Tree growth tests</title> <script src="https://s.codepen.io/assets/libs/modernizr.js" type="text/javascript"></script> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ @import url(https://fonts.googleapis.com/css?family=Raleway:400,800);
figure,
div { display: inline-block; vertical-align: bottom;
}
figure { margin: 0; width: 58px; height: 87px; position: relative; transition: all 1s; background: #aff;
}
figure span,
figure span:before,
figure span:after { position: absolute; display: block; transition: all 1s;
}
.bottom { width: 8px; height: 22px; background: #a65; bottom: 0; left: 0; right: 0; margin: auto;
}
.top,
.top:before,
.top:after,
.treesection { transition: all 1s; width: 0; height: 0; border-left: 29px solid transparent; border-right: 29px solid transparent; border-bottom: 65px solid #465;
}
.top,
.treebtm,
.treemid { bottom: 22px;
}
.treetop { top: 0;
}
.top:before,
.top:after { content: ""; left: -29px;
}
.top:before,
.treemid { border-bottom-color: #484;
}
.top:after,
.treetop { border-bottom-color: #4a6; bottom: auto;
}
figure.med .top:after,
figure.big .top:after { border-bottom-width: 40px;
}
figure.med { height: 95px;
}
figure.med .top:after { top: -8px;
}
figure.big { height: 130px;
}
figure.big .top:before { top: -33px;
}
figure.big .top:after { top: -43px;
}
h2 { font-size: 2em; font-family: Raleway; font-weight: 800;
}
button { font-size: 1.2em; font-family: Raleway;
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <figure id="tree" class="big"> <span class="top"></span> <span class="bottom"></span>
</figure>
<div> <h2>CSS</h2> <ul> <li><button id="btn-css-sm">small</button></li> <li><button id="btn-css-md">medium</button></li> <li><button id="btn-css-bg">big</button></li> </ul>
</div>
<figure id="tree2"> <span class="treesection treebtm"></span> <span class="treesection treemid"></span> <span class="treesection treetop"></span> <span class="bottom"></span>
</figure>
<div> <h2>jQuery Transit</h2> <ul> <li><button id="btn-sm">small</button></li> <li><button id="btn-md">medium</button></li> <li><button id="btn-bg">big</button></li> </ul>
</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/jquery.transit/0.9.9/jquery.transit.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Tree growth tests - Script Codes CSS Codes
@import url(https://fonts.googleapis.com/css?family=Raleway:400,800);
figure,
div { display: inline-block; vertical-align: bottom;
}
figure { margin: 0; width: 58px; height: 87px; position: relative; transition: all 1s; background: #aff;
}
figure span,
figure span:before,
figure span:after { position: absolute; display: block; transition: all 1s;
}
.bottom { width: 8px; height: 22px; background: #a65; bottom: 0; left: 0; right: 0; margin: auto;
}
.top,
.top:before,
.top:after,
.treesection { transition: all 1s; width: 0; height: 0; border-left: 29px solid transparent; border-right: 29px solid transparent; border-bottom: 65px solid #465;
}
.top,
.treebtm,
.treemid { bottom: 22px;
}
.treetop { top: 0;
}
.top:before,
.top:after { content: ""; left: -29px;
}
.top:before,
.treemid { border-bottom-color: #484;
}
.top:after,
.treetop { border-bottom-color: #4a6; bottom: auto;
}
figure.med .top:after,
figure.big .top:after { border-bottom-width: 40px;
}
figure.med { height: 95px;
}
figure.med .top:after { top: -8px;
}
figure.big { height: 130px;
}
figure.big .top:before { top: -33px;
}
figure.big .top:after { top: -43px;
}
h2 { font-size: 2em; font-family: Raleway; font-weight: 800;
}
button { font-size: 1.2em; font-family: Raleway;
}
Tree growth tests - Script Codes JS Codes
var $tree, $treeTop, $treeMid, $tree2, $tree2Top, $tree2Mid;
$(function(){ $tree = $('#tree'); $treeTop = $('#tree .top:after'); $treeMid = $('#tree .top:before'); $tree2 = $('#tree2'); $tree2Top = $('#tree2 .treetop'); $tree2Mid = $('#tree2 .treemid'); $('#btn-css-sm').click(function(){ setTreeClass(''); }); $('#btn-css-md').click(function(){ setTreeClass('med'); }); $('#btn-css-bg').click(function(){ setTreeClass('big'); }); $('#btn-sm').click(function(){ setTreeSize('sml'); }); $('#btn-md').click(function(){ setTreeSize('med'); }); $('#btn-bg').click(function(){ setTreeSize('big'); });
});
function setTreeClass(className) { $tree.removeClass(); $tree.addClass(className);
}
function setTreeSize(treeSize) { switch (treeSize) { case 'big': $tree2.transition({height: '130px', scale: 1.4}); $tree2Top.transition({'border-bottom-width': '40px'}); $tree2Mid.transition({bottom: '55px'}); break; case 'med': $tree2.transition({height: '95px', scale: 1.2}); $tree2Top.transition({'border-bottom-width': '40px'}); $tree2Mid.transition({bottom: '22px'}); break; case 'sml': $tree2.transition({height: '87px', scale: 1}); $tree2Top.transition({'border-bottom-width': '65px'}); $tree2Mid.transition({bottom: '22px'}); break; }
}
Developer | Adam Orchard |
Username | orchard |
Uploaded | December 02, 2022 |
Rating | 3 |
Size | 3,818 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 |
Animated Burgers | 3,329 Kb |
Colour Themes | 2,662 Kb |
CSS Gem Badge | 3,335 Kb |
Parallax Clouds | 7,285 Kb |
WIP | 2,835 Kb |
A Pen by Adam Orchard | 1,983 Kb |
CSS Moon - dribbble rebound | 2,929 Kb |
Burger with Label | 3,346 Kb |
CSS Triangle Animation | 2,638 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 |
Boom | Mhrjnsa1 | 1,794 Kb |
Infractions - Attitude | Kylie_Joseph | 7,672 Kb |
Svg animation draw | SzymonDziewonski | 5,545 Kb |
Animated css matrix type | NielsOeltjen | 3,484 Kb |
LeMandinque | Aadesida | 9,046 Kb |
Motion Lines - codevember - 02 - 2016 | Caiocares | 2,744 Kb |
Flower expansion | Sreucherand | 3,425 Kb |
Web SQL | Hoehoe | 1,983 Kb |
Twitch Live Channels | Inkblotty | 4,956 Kb |
The Fly | GianlucaGuarini | 3,405 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!