A Pen by Coran Spicer
How do I make an a pen by coran spicer?
What is a a pen by coran spicer? How do you make a a pen by coran spicer? This script and codes were developed by Coran Spicer on 15 October 2022, Saturday.
A Pen by Coran Spicer - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>A Pen by Coran Spicer</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="thumbnail" id="one"></div>
<div class="thumbnail" id="two"></div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/gsap/1.11.8/TweenMax.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
A Pen by Coran Spicer - Script Codes CSS Codes
.thumbnail { display: inline-block; position: absolute; width: 200px; height: 200px; background-image: url("http://placehold.it/500x300"); background-position: center center; background-size: 400px 240px; border: 4px solid black; -moz-transform: translate3d(0, 0, 0); -ms-transform: translate3d(0, 0, 0); -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);
}
#one { top: 100px; left: 100px;
}
#two { top: 100px; left: 400px;
}
A Pen by Coran Spicer - Script Codes JS Codes
var ExplodingThumb = function( $el, expandStateClassOverride ){ var self = this; var settings = {}; // default settings settings.expandToX = 200; settings.expandToY = 200; settings.expandToBGWidth = 500; settings.expandToBGHeight = 300; settings.expandToWidth = 500; settings.expandToHeight = 300; var expandedStateClass = 'expanded', contractedStateClass = 'contracted'; // functions // STORE SETTINGS var storeSettings = function() { // parse the markup for data-exploding-settings // refine/override settings object above } // EXPAND var expand = function(){ // expansion animation TweenMax.to($el,.75,{x:settings.expandToX, y:settings.expandToY, backgroundSize:settings.expandToBGWidth+'px '+settings.expandToBGHeight+'px', width:settings.expandToWidth + 'px', height: settings.expandToHeight + 'px', transformOrigin:'left top', force3D:true}); }; // CONTRACT var contract = function(){ // contraction animation TweenMax.to($el,.75,{x:0, y:0, backgroundSize: '400px 240px', width:200 + 'px', height: 200 + 'px', transformOrigin:'left top', force3D:true}); }; // CHECK STATE var checkState = function() { return $el.hasClass( expandedStateClass ) ? expandedStateClass : contractedStateClass; }; // CLICK HANDLER var clicked = function(e){ // check for current state if ( checkState() == expandedStateClass ) { // add class to indicate state $el.removeClass(expandedStateClass).addClass(contractedStateClass); contract(); } else { // add class to indicate state $el.removeClass(contractedStateClass).addClass(expandedStateClass); expand(); } }; //init IIFE (function() { storeSettings(); $el.on( 'click', clicked ); })(); // API return { expandThumb: function(){ expand(); }, contractThumb: function() { contract(); } };
};
var thisThumbnail = new ExplodingThumb($('#one'));
var thisThumbnail = new ExplodingThumb($('#two'));
Developer | Coran Spicer |
Username | cgspicer |
Uploaded | October 15, 2022 |
Rating | 3 |
Size | 2,815 Kb |
Views | 20,240 |
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 |
Aaronmarino.com v2 styles | 2,863 Kb |
Drag and Drop Quiz | 3,837 Kb |
Promise example | 2,343 Kb |
Fruit Stripe Background | 2,758 Kb |
Shattering boxes | 3,390 Kb |
Hi-rez logo | 5,938 Kb |
Header logo that changes | 2,031 Kb |
Album 88 Tuner | 9,852 Kb |
SMITE Ward Icon | 3,236 Kb |
Donatello Sprite | 2,452 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 penguin | _massimo | 2,990 Kb |
Pure CSS albums gallery | Renaudtertrais | 2,978 Kb |
Blog | Rottingroom | 1,430 Kb |
Fixed with using Calc | Tomleo | 2,542 Kb |
CSS Patterns | Alyda | 3,953 Kb |
STIKHOI | Denmch | 7,122 Kb |
HTML5 Video Autoplay | Zivcos | 1,352 Kb |
Blog demo to use given styling | Andygirl | 2,412 Kb |
Sketchy Box | Mnicpt | 3,033 Kb |
A simple log in form made with css | Mayurelbhar | 2,160 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!