Swipe View
How do I make an swipe view?
What is a swipe view? How do you make a swipe view? This script and codes were developed by Thomas Hare on 15 November 2022, Tuesday.
Swipe View - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Swipe View</title> <link href='https://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Arvo:400,700' rel='stylesheet' type='text/css'> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> <link rel='stylesheet prefetch' href='https://cdnjs.cloudflare.com/ajax/libs/Swiper/3.2.7/css/swiper.min.css'> <link rel="stylesheet" href="css/style.css">
</head>
<body> <!-- Swiper -->
<div class="swiper-container"> <div class="swiper-wrapper"> <div class="first swiper-slide">Page 1</div> <div class="second swiper-slide">Page 2</div> <div class="third swiper-slide">Page 3</div> </div> <div class="swiper-button-next swiper-button-white">next</div> <div class="swiper-button-prev swiper-button-white">prev</div>
</div> <script src='https://cdnjs.cloudflare.com/ajax/libs/Swiper/3.2.7/js/swiper.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Swipe View - Script Codes CSS Codes
body { background: #eee; font-family: Helvetica Neue, Helvetica, Arial, sans-serif; font-size: 14px; color:#000; margin: 0; padding: 0;
}
.swiper-container { width: 100wh; height: 100vh;
}
.swiper-slide { text-align: center; font-size: 18px; background: #fff; /* Center slide text vertically */ display: -webkit-box; display: -ms-flexbox; display: -webkit-flex; display: flex; -webkit-box-pack: center; -ms-flex-pack: center; -webkit-justify-content: center; justify-content: center; -webkit-box-align: center; -ms-flex-align: center; -webkit-align-items: center; align-items: center;
}
.first { background-color: #666; color: #EEE;
}
.second { background-color: #6EE; color: #666;
}
.third { background-color: #60F; color: #999;
}
.swiper-button-prev, .swiper-button-next { background-position: top; background-size: 1rem; bottom: 1rem; height: auto; padding-top: 2rem; position: absolute; top: auto;
}
Swipe View - Script Codes JS Codes
var swiper = new Swiper('.swiper-container', { pagination: '.swiper-pagination', paginationClickable: '.swiper-pagination', nextButton: '.swiper-button-next', prevButton: '.swiper-button-prev', spaceBetween: 30, effect: 'fade' });
![Swipe View - Script Codes](http://shots.codepen.io/tommyhare/pen/vLLNEN-512.jpg)
Developer | Thomas Hare |
Username | tommyhare |
Uploaded | November 15, 2022 |
Rating | 3 |
Size | 2,225 Kb |
Views | 30,360 |
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 |
Ashley Fitness | 4,468 Kb |
Space Ashley | 2,028 Kb |
Responsive Sidebar | 2,460 Kb |
Material UI | 4,384 Kb |
Micropush | 3,184 Kb |
Random Drawing | 15,816 Kb |
Table Classes | 2,645 Kb |
Stock Card | 4,263 Kb |
The Initiator | 2,695 Kb |
Bootstrap Form Fun | 2,424 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 |
Bezier Animation with straight paths | Rhernando | 2,087 Kb |
Template | Indra_z85 | 2,323 Kb |
Gears | Synvox | 3,278 Kb |
Beautiful canvas stars | Matths | 2,399 Kb |
Transitioning application screens with semantically named classes | Djgrant | 3,697 Kb |
Simple Carousel Pure CSS | Dangvanthanh | 4,080 Kb |
A Pen by Dalton Liu | Liudalton | 12,437 Kb |
Ghost | Mghayour | 11,738 Kb |
Toggle Time | Petebot | 5,345 Kb |
Responsive Menu I | Rodericksandoval | 3,045 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!