Animation iFrame Google maps - Vanilla Javascript
How do I make an animation iframe google maps - vanilla javascript?
What is a animation iframe google maps - vanilla javascript? How do you make a animation iframe google maps - vanilla javascript? This script and codes were developed by Kévin Joffard on 11 October 2022, Tuesday.
Animation iFrame Google maps - Vanilla Javascript - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Animation iFrame Google maps - Vanilla Javascript</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <body> <a href="#" class="button">Click to resize</a> <div class="container"> <div class="project"> <iframe src="https://www.google.com/maps/embed?pb=!1m14!1m12!1m3!1d338195.2873427642!2d2.2500731!3d48.530343949999995!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!5e0!3m2!1sen!2sfr!4v1490778528424" frameborder="0" style="border:0" allowfullscreen class="map"></iframe> </div> </div>
</body> <script src="js/index.js"></script>
</body>
</html>
Animation iFrame Google maps - Vanilla Javascript - Script Codes CSS Codes
* { padding: 0; margin: 0;
}
.button { padding: 10px; margin: 2rem auto; width: 6%; background-color: #FFC72C; display:block; text-decoration: none; color: #071D49;
}
.button:hover{ background-color: #071D49; color: #FFC72C;
}
.container { height: 90vh; width: 1400px; margin: 0 auto; background-color: blue;
}
.project { height: 90vh; width: 100%; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover;
}
.map { width: 100%; height: 90vh; display: block; transition:all 1s linear;
}
.mapAnimationIn{ animation: resize-gmap 5s; animation-fill-mode: forwards; display: block;
}
/* Keyframe resize Gmap */
@keyframes resize-gmap { from { height: 90vh; width: 100%; } to { height: 36vh; width: 20vw; transform: translate(0,54vh); }
}
Animation iFrame Google maps - Vanilla Javascript - Script Codes JS Codes
var start = document.querySelector('.button'), gmap = document.querySelector('.map');
start.addEventListener('click', function () { gmap.classList.add('mapAnimationIn'); gmap.classList.remove('map');
}, false);
function loadBG(){ document.getElementByClassName("project").style.backgroundImage="url(https://upload.wikimedia.org/wikipedia/commons/0/07/Project_Jewel_Photo_1.jpg)";
}
window.onload=loadBG();
![Animation iFrame Google maps - Vanilla Javascript - Script Codes](http://shots.codepen.io/kejoff/pen/bqmQXQ-512.jpg)
Developer | Kévin Joffard |
Username | kejoff |
Uploaded | October 11, 2022 |
Rating | 3 |
Size | 2,322 Kb |
Views | 24,288 |
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 |
Footer Grid | 2,023 Kb |
Product Page | 6,544 Kb |
Aframe - Hello Metaverse Testing | 2,235 Kb |
Grid 2 columns test | 1,710 Kb |
Footer new generation | 3,069 Kb |
Landing Page 3 columns oblique | 3,251 Kb |
Vertical Accordeon Menu | 2,226 Kb |
Experimentation - Gmaps Colors | 2,757 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 |
Gulpfile | Aimhigherwebdesign-amy | 1,765 Kb |
CardMove | Thompsonemerson | 3,699 Kb |
A cube | KyleDavidE | 18,627 Kb |
Simple Weather App | Cmwebby | 0 Kb |
Clock Face Idea | Chrisburnell | 3,196 Kb |
Button fills | Zubfatal | 5,205 Kb |
Fireworks Show | Arianalynn | 3,048 Kb |
Layout 11 | Altynai | 1,690 Kb |
Disable JavaScript execution from console | Ludviglindblom | 2,534 Kb |
Shop Talk logo made in CSS | Hugo | 19,368 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!