├── Miniatura.png ├── README.md ├── css └── styles.css ├── images ├── user1.jpg ├── user2.jpg ├── user3.jpg └── user4.jpg └── index.html /Miniatura.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devmode-on/Card-Slider/41e84cada550b781309258187f1bbce9ac3c9afe/Miniatura.png -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Card-Slider 2 | Card Slider Using HTML CSS & Swiper.js 3 | 4 |  5 | -------------------------------------------------------------------------------- /css/styles.css: -------------------------------------------------------------------------------- 1 | /* ------------ GOOGLE FONTS ------------ */ 2 | @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap'); 3 | 4 | /* ------------ VARIABLES ------------ */ 5 | :root{ 6 | /* FONT */ 7 | --font: 'Poppins', sans-serif; 8 | 9 | /* COLORS */ 10 | --color: #9176FF; 11 | --bg-color: #f4f4f4; 12 | } 13 | 14 | /* ------------ BASE ------------ */ 15 | *{ 16 | margin: 0; 17 | padding: 0; 18 | box-sizing: border-box; 19 | } 20 | 21 | body{ 22 | font-family: var(--font); 23 | display: flex; 24 | justify-content: center; 25 | align-items: center; 26 | height: 100vh; 27 | 28 | background-color: var(--bg-color); 29 | } 30 | 31 | /* ----------- SLIDER ------------ */ 32 | .swiper{ 33 | width: 100%; 34 | } 35 | 36 | .swiper-wrapper{ 37 | width: 100%; 38 | height: 35em; 39 | display: flex; 40 | align-items: center; 41 | } 42 | 43 | .card{ 44 | width: 20em; 45 | height: 90%; 46 | background-color: #fff; 47 | border-radius: 2em; 48 | box-shadow: 0 0 2em rgba(0, 0, 0, .2); 49 | padding: 2em 1em; 50 | 51 | display: flex; 52 | align-items: center; 53 | flex-direction: column; 54 | 55 | margin: 0 2em; 56 | } 57 | 58 | .swiper-slide:not(.swiper-slide-active){ 59 | filter: blur(1px); 60 | } 61 | 62 | .card__image{ 63 | width: 10em; 64 | height: 10em; 65 | border-radius: 50%; 66 | border: 5px solid var(--color); 67 | padding: 3px; 68 | margin-bottom: 2em; 69 | } 70 | 71 | .card__image img{ 72 | width: 100%; 73 | height: 100%; 74 | border-radius: 50%; 75 | object-fit: cover; 76 | } 77 | 78 | .card__content{ 79 | display: flex; 80 | align-items: center; 81 | flex-direction: column; 82 | } 83 | 84 | .card__title{ 85 | font-size: 1.5rem; 86 | font-weight: 500; 87 | position: relative; 88 | top: .2em; 89 | } 90 | 91 | .card__name{ 92 | color: var(--color); 93 | } 94 | 95 | .card__text{ 96 | text-align: center; 97 | font-size: 1.1rem; 98 | margin: 1em 0; 99 | } 100 | 101 | .card__btn{ 102 | background-color: var(--color); 103 | color: #fff; 104 | font-size: 1rem; 105 | text-transform: uppercase; 106 | font-weight: 600; 107 | border: none; 108 | padding: .5em; 109 | border-radius: .5em; 110 | margin-top: .5em; 111 | cursor: pointer; 112 | } -------------------------------------------------------------------------------- /images/user1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devmode-on/Card-Slider/41e84cada550b781309258187f1bbce9ac3c9afe/images/user1.jpg -------------------------------------------------------------------------------- /images/user2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devmode-on/Card-Slider/41e84cada550b781309258187f1bbce9ac3c9afe/images/user2.jpg -------------------------------------------------------------------------------- /images/user3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devmode-on/Card-Slider/41e84cada550b781309258187f1bbce9ac3c9afe/images/user3.jpg -------------------------------------------------------------------------------- /images/user4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devmode-on/Card-Slider/41e84cada550b781309258187f1bbce9ac3c9afe/images/user4.jpg -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | 7 |