Instagram Hover
How do I make an instagram hover?
Could really be used with any image or whatever, but I made it with Instagram photos in mind.. What is a instagram hover? How do you make a instagram hover? This script and codes were developed by Derek Wheelden on 10 August 2022, Wednesday.
Instagram Hover - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Instagram Hover</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.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! */ .instagrams { width: 1000px; margin: 0 auto;
}
.instagram { position: relative; width: 31%; margin: 1%; padding-bottom: 31%; float: left; overflow: hidden;
}
.instagram .user { position: absolute; top: 0; left: 0; right: 0; bottom: 0; padding: 0 15px; background: #531313; text-overflow: ellipsis;
}
.instagram .user img { position: absolute; top: 15px; right: 15px; width: 70px; border-radius: 200px; vertical-align: middle; box-shadow: 0px 0px 0px 5px #d02f2f; -webkit-transform: translateY(100px); -moz-transform: translateY(100px); -ms-transform: translateY(100px); -o-transform: translateY(100px); transform: translateY(100px); -webkit-transition: all 0.5s; -moz-transition: all 0.5s; transition: all 0.5s;
}
.instagram .user img:hover { border-radius: 0; box-shadow: none;
}
.instagram .user h1 { width: 70%; margin: 0; font-size: 20px; line-height: 100px; font-weight: 100; color: white; text-align: left;
}
.instagram > img { position: absolute; top: 0; left: 0; width: 100%; -webkit-transition: all 0.5s; -moz-transition: all 0.5s; transition: all 0.5s;
}
.instagram:hover > img { -webkit-filter: grayscale(100%); -webkit-transform: translateY(100px); -moz-transform: translateY(100px); -ms-transform: translateY(100px); -o-transform: translateY(100px); transform: translateY(100px);
}
.instagram:hover > .user img { -webkit-transform: translateY(0px); -moz-transform: translateY(0px); -ms-transform: translateY(0px); -o-transform: translateY(0px); transform: translateY(0px);
}
* { box-sizing: border-box;
}
body { background: #7d1c1c; font-family: 'Helvetica Neue', helvetica, arial, sans-serif; font-weight: 100; letter-spacing: 2px; color: white; -webkit-backface-visibility: hidden;
}
h1 { font-size: 50px; font-weight: 100; text-align: center; text-transform: uppercase; color: #d02f2f;
}
.cf:before,
.cf:after { content: " "; /* 1 */ display: table; /* 2 */
}
.cf:after { clear: both;
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <h1>Instagram Hoverin’</h1>
<div class="instagrams">
</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>
Instagram Hover - Script Codes CSS Codes
.instagrams { width: 1000px; margin: 0 auto;
}
.instagram { position: relative; width: 31%; margin: 1%; padding-bottom: 31%; float: left; overflow: hidden;
}
.instagram .user { position: absolute; top: 0; left: 0; right: 0; bottom: 0; padding: 0 15px; background: #531313; text-overflow: ellipsis;
}
.instagram .user img { position: absolute; top: 15px; right: 15px; width: 70px; border-radius: 200px; vertical-align: middle; box-shadow: 0px 0px 0px 5px #d02f2f; -webkit-transform: translateY(100px); -moz-transform: translateY(100px); -ms-transform: translateY(100px); -o-transform: translateY(100px); transform: translateY(100px); -webkit-transition: all 0.5s; -moz-transition: all 0.5s; transition: all 0.5s;
}
.instagram .user img:hover { border-radius: 0; box-shadow: none;
}
.instagram .user h1 { width: 70%; margin: 0; font-size: 20px; line-height: 100px; font-weight: 100; color: white; text-align: left;
}
.instagram > img { position: absolute; top: 0; left: 0; width: 100%; -webkit-transition: all 0.5s; -moz-transition: all 0.5s; transition: all 0.5s;
}
.instagram:hover > img { -webkit-filter: grayscale(100%); -webkit-transform: translateY(100px); -moz-transform: translateY(100px); -ms-transform: translateY(100px); -o-transform: translateY(100px); transform: translateY(100px);
}
.instagram:hover > .user img { -webkit-transform: translateY(0px); -moz-transform: translateY(0px); -ms-transform: translateY(0px); -o-transform: translateY(0px); transform: translateY(0px);
}
* { box-sizing: border-box;
}
body { background: #7d1c1c; font-family: 'Helvetica Neue', helvetica, arial, sans-serif; font-weight: 100; letter-spacing: 2px; color: white; -webkit-backface-visibility: hidden;
}
h1 { font-size: 50px; font-weight: 100; text-align: center; text-transform: uppercase; color: #d02f2f;
}
.cf:before,
.cf:after { content: " "; /* 1 */ display: table; /* 2 */
}
.cf:after { clear: both;
}
Instagram Hover - Script Codes JS Codes
$instagrams = $('.instagrams');
$.ajax({ type: "GET", url: "https://api.instagram.com/v1/media/popular?client_id=2751b9d3ef1948da8c6eeceefe3fb718&count=3", dataType: "jsonp", success: function (json) { $(json.data).each(function(e) { $instagrams.append( '<div class="instagram">' + '<div class="user">' + '<img src="' + this.user.profile_picture + '" />' + '<h1>' + this.user.full_name + '</h1>' + '</div>' + '<img src="' + this.images.low_resolution.url + '" />' + '</div>' ); }); }
});
Developer | Derek Wheelden |
Username | frxnz |
Uploaded | August 10, 2022 |
Rating | 4.5 |
Size | 4,031 Kb |
Views | 44,528 |
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 |
Tile Animation Thing | 4,332 Kb |
Folding Panels | 3,134 Kb |
Bouncing Border | 2,548 Kb |
File Browser Mockup | 7,337 Kb |
JavaScript Templates | 4,381 Kb |
3D Cube Carousel | 5,176 Kb |
Sliding Tab Box Things | 5,366 Kb |
Off-Screen Mobile Nav | 4,428 Kb |
Drop Caps | 3,334 Kb |
Google Maps Geolocation Test | 4,439 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 |
How to add Css Fold Notes In Blogger By Askwithloud.com | Askwithloud | 2,280 Kb |
Sassy Buttons | Elyseholladay | 2,299 Kb |
Personal Website Redesign v2.0 | DevItWithDavid | 5,168 Kb |
Static Image to Video Block | Grayghostvisuals | 4,864 Kb |
Navier Stoke Fluid Simulation | Esimov | 8,584 Kb |
Login with flip 3d animation | Mariusbalaj | 3,014 Kb |
The Fly | GianlucaGuarini | 3,405 Kb |
Particle Motion trajectories | Sniejadlik | 5,899 Kb |
Minimal Material Design Form Input | Koenigsegg1 | 3,076 Kb |
Pure CSS Read More Arrow | Zephyr | 1,747 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!