-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample7.html
More file actions
184 lines (162 loc) · 6.5 KB
/
Copy pathexample7.html
File metadata and controls
184 lines (162 loc) · 6.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
<!DOCTYPE html>
<html>
<head>
<title>Engaslider - Minimalista (Sem Dots)</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie-edge">
<!-- Importações da arquitetura modular base -->
<link rel="stylesheet" href="../src/slider-min/css/engaslider-core.css">
<style>
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
background-color: #fafafa;
color: #1a1a1a;
max-width: 600px;
margin: 60px auto;
padding: 20px;
}
h1 {
text-align: center;
font-size: 28px;
font-weight: 700;
letter-spacing: -0.5px;
margin-bottom: 8px;
}
p.desc {
text-align: center;
color: #666;
font-size: 15px;
margin-bottom: 40px;
}
.slider-wrapper {
position: relative;
background: #fff;
border-radius: 20px;
overflow: hidden;
box-shadow: 0 10px 30px rgba(0,0,0,0.04);
border: 1px solid #eaeaea;
}
/* 1. Customização Básica */
#slider-minimalist {
max-width: 100%;
}
.slider-container {
max-width: 100%;
padding: 0;
}
.slider-image {
padding: 0;
}
.slider-image img {
width: 100%;
display: block;
border: none;
/* Transição suave de fade + slide sutil */
animation: clean-fade 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.slider-text-caption {
position: absolute;
bottom: 20px;
left: 20px;
background: rgba(255, 255, 255, 0.9);
backdrop-filter: blur(10px);
padding: 8px 16px;
border-radius: 30px;
font-size: 12px;
font-weight: 600;
color: #333;
box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
/* 2. Setas de Navegação Minimalistas */
.slider-previous-button,
.slider-next-button {
background-color: rgba(255, 255, 255, 0.85);
backdrop-filter: blur(5px);
color: #1a1a1a;
font-size: 1.1em;
width: 44px;
height: 44px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
top: 50%;
transform: translateY(-50%);
margin: 0;
text-shadow: none;
box-shadow: 0 4px 10px rgba(0,0,0,0.06);
transition: all 0.2s ease;
}
.slider-previous-button {
left: 15px;
}
.slider-next-button {
right: 15px;
}
.slider-previous-button:hover,
.slider-next-button:hover {
background-color: #fff;
transform: translateY(-50%) scale(1.08);
box-shadow: 0 6px 15px rgba(0,0,0,0.12);
}
@keyframes clean-fade {
from { opacity: 0; transform: translateY(4px); }
to { opacity: 1; transform: translateY(0); }
}
</style>
</head>
<body>
<h1>Galeria Minimalista</h1>
<p class="desc">Design focado na imagem. Sem dots de paginação ou miniaturas, exibindo apenas setas flutuantes sobrepostas e legendas suspensas com efeito blur.</p>
<div class="slider-wrapper">
<!-- Estrutura limpa sem divs de miniaturas ou dots -->
<div id="slider-minimalist" class="slider-main-container">
<div class="slider-container">
<div class="slider-image">
<img src="imgs/01.jpg" alt="Natureza 1">
<div class="slider-text-caption">01 / Saguim in tree</div>
</div>
<div class="slider-image">
<img src="imgs/02.jpg" alt="Natureza 2">
<div class="slider-text-caption">02 / Saguim in branch</div>
</div>
<div class="slider-image">
<img src="imgs/04.jpg" alt="Gatos 1">
<div class="slider-text-caption">03 / Cat in house</div>
</div>
<div class="slider-image">
<img src="imgs/06.jpg" alt="Gatos 2">
<div class="slider-text-caption">04 / Cat and nature</div>
</div>
<a class="slider-previous-button">❮</a>
<a class="slider-next-button">❯</a>
</div>
</div>
</div>
<!-- Navegação de Exemplos -->
<div style="margin: 45px auto; text-align: center; padding: 10px; color: black; font-family: sans-serif; font-size: 14px;">
<p style="margin-bottom: 10px; font-weight: bold; color: #555;">Navegação de Exemplos:</p>
<a href="index.html" style="margin: 0 5px; color: #007bff; text-decoration: none;">0. Padrão</a> |
<a href="example1.html" style="margin: 0 5px; color: #007bff; text-decoration: none;">1. Thumbnails Horizontais</a> |
<a href="example2.html" style="margin: 0 5px; color: #007bff; text-decoration: none;">2. Estilo Simples</a> |
<a href="example3.html" style="margin: 0 5px; color: #007bff; text-decoration: none;">3. Tema Escuro</a> |
<a href="example4.html" style="margin: 0 5px; color: #007bff; text-decoration: none;">4. Múltiplas Instâncias</a> |
<a href="example5.html" style="margin: 0 5px; color: #007bff; text-decoration: none;">5. Teclado/Transições</a> |
<a href="example6.html" style="margin: 0 5px; color: #007bff; text-decoration: none;">6. Layout de Notícias</a> |
<a href="example7.html" style="margin: 0 5px; color: #007bff; text-decoration: none; font-weight: bold;">7. Sem Dots</a> |
<a href="example8.html" style="margin: 0 5px; color: #007bff; text-decoration: none;">8. E-commerce</a> |
<a href="example9.html" style="margin: 0 5px; color: #007bff; text-decoration: none;">9. Fullscreen</a>
</div>
<!-- Scripts -->
<script src="../src/slider-min/js/engaslider.js"></script>
<script>
document.addEventListener("DOMContentLoaded", function () {
// Inicializando o slider
const minimalistSlider = new Engaslider("#slider-minimalist", {
autoplay: false
});
});
</script>
</body>
</html>