Siema - multiple instances on a same page
How do I make an siema - multiple instances on a same page?
What is a siema - multiple instances on a same page? How do you make a siema - multiple instances on a same page? This script and codes were developed by Pawel Grzybek on 23 June 2022, Thursday.
Siema - multiple instances on a same page - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Siema - multiple instances on a same page</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="siema"> <div><img src="https://pawelgrzybek.com/siema/assets/siema--pink.svg" alt="Siema image" /></div> <div><img src="https://pawelgrzybek.com/siema/assets/siema--yellow.svg" alt="Siema image" /></div> <div><img src="https://pawelgrzybek.com/siema/assets/siema--pink.svg" alt="Siema image" /></div> <div><img src="https://pawelgrzybek.com/siema/assets/siema--yellow.svg" alt="Siema image" /></div>
</div>
<div class="siema"> <div><img src="https://pawelgrzybek.com/siema/assets/siema--pink.svg" alt="Siema image" /></div> <div><img src="https://pawelgrzybek.com/siema/assets/siema--yellow.svg" alt="Siema image" /></div> <div><img src="https://pawelgrzybek.com/siema/assets/siema--pink.svg" alt="Siema image" /></div> <div><img src="https://pawelgrzybek.com/siema/assets/siema--yellow.svg" alt="Siema image" /></div>
</div>
<div class="siema"> <div><img src="https://pawelgrzybek.com/siema/assets/siema--pink.svg" alt="Siema image" /></div> <div><img src="https://pawelgrzybek.com/siema/assets/siema--yellow.svg" alt="Siema image" /></div> <div><img src="https://pawelgrzybek.com/siema/assets/siema--pink.svg" alt="Siema image" /></div> <div><img src="https://pawelgrzybek.com/siema/assets/siema--yellow.svg" alt="Siema image" /></div>
</div> <script src='https://pawelgrzybek.com/siema/assets/siema.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Siema - multiple instances on a same page - Script Codes CSS Codes
body { width: 100%; max-width: 30rem; margin: 0 auto;
}
img { width: 100%;
}
.siema { margin: 1rem 0;
}
Siema - multiple instances on a same page - Script Codes JS Codes
'use strict';
var siemas = document.querySelectorAll('.siema');
// this is fairly new way of looping through DOM Elements
// More about ithere: https://pawelgrzybek.com/loop-through-a-collection-of-dom-elements/
// For better compatibility I suggest using for loop
for (var _iterator = siemas, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) { var _ref; if (_isArray) { if (_i >= _iterator.length) break; _ref = _iterator[_i++]; } else { _i = _iterator.next(); if (_i.done) break; _ref = _i.value; } var siema = _ref; new Siema({ selector: siema });
}
Developer | Pawel Grzybek |
Username | pawelgrzybek |
Uploaded | June 23, 2022 |
Rating | 3 |
Size | 2,519 Kb |
Views | 72,864 |
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 |
Siema - onChange | 2,098 Kb |
CSS keywords | 4,093 Kb |
Siema - keyboard navigation | 2,297 Kb |
Siema - add pagination to prototype | 2,575 Kb |
2016-02-19-css-custom-properties-explained | 2,657 Kb |
ObjectFit fallback for IE and Edge | 2,257 Kb |
2015.05.09 - 3 | 2,363 Kb |
Siema - onInit and onChange callbacks use | 2,569 Kb |
Siema - Vue basic example | 2,509 Kb |
2015.05.09 - 4 | 2,479 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 |
Glowing Pulse Form | Jackrugile | 2,542 Kb |
C.Rowe Button | Brownerd | 2,473 Kb |
FCC - Tribute Page | Cmwebby | 0 Kb |
BSP Dungeon Generation | Xgundam05 | 5,326 Kb |
700 Synapses Per Second | Silentkrange | 2,138 Kb |
CSS Grid Overlay | Cliffpyles | 3,090 Kb |
Ghost Buttons with CSS3 | Mithicher | 2,509 Kb |
Simple Login Form | JoshBlackwood | 4,418 Kb |
Comment Jquery | SquishyAndroid | 2,421 Kb |
A Pen by Taylor Vowell | Taylorvowell | 5,962 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!