CSS3 Fade slider

View: 535    Dowload: 0   Comment: 0   Post by: hanhga   Category: References   Fields: none

File has been tested

css tips, css3, Fade slider, thiet ke web, thu thuat css

As a web designer, sometimes you will need to create the slide images with different effects for the banner ads on its products. If you feel bored, having to use the slide presentation using jquery or flash which of course only makes your web site becomes more heavily then I would share with you more how to create a photo slide without taking to luxuries, that just by CSS3, and the effect that it creates no less edge a bit. To start the first we will create the HTML frame containing the image that we want to perform.
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
<div>
 
<ul> <!-- slides -->
 
<li><img src="images/pic1.jpg" alt="image01" />
 
<div>Promo text #1</div>
 
</li>
 
<li><img src="images/pic2.jpg" alt="image02" />
 
<div>Promo text #2</div>
 
</li>
 
<li><img src="images/pic3.jpg" alt="image03" />
 
<div>Promo text #3</div>
 
</li>
 
<li><img src="images/pic4.jpg" alt="image04" />
 
<div>Promo text #4</div>
 
</li>
 
</ul>
 
</div>

After creating HTML we will proceed to write css for our slide.

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
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
/* fade slider */
 
.slides {
 
height:300px;
 
margin:50px auto;
 
overflow:hidden;
 
position:relative;
 
width:900px;
 
}
 
.slides ul {
 
list-style:none;
 
position:relative;
 
}
 
 
 
/* keyframes #anim_slides */
 
@-webkit-keyframes anim_slides {
 
0% {
 
opacity:0;
 
}
 
6% {
 
opacity:1;
 
}
 
24% {
 
opacity:1;
 
}
 
30% {
 
opacity:0;
 
}
 
100% {
 
opacity:0;
 
}
 
}
 
@-moz-keyframes anim_slides {
 
0% {
 
opacity:0;
 
}
 
6% {
 
opacity:1;
 
}
 
24% {
 
opacity:1;
 
}
 
30% {
 
opacity:0;
 
}
 
100% {
 
opacity:0;
 
}
 
}
 
 
 
.slides ul li {
 
opacity:0;
 
position:absolute;
 
top:0;
 
 
 
/* css3 animation */
 
-webkit-animation-name: anim_slides;
 
-webkit-animation-duration: 24.0s;
 
-webkit-animation-timing-function: linear;
 
-webkit-animation-iteration-count: infinite;
 
-webkit-animation-direction: normal;
 
-webkit-animation-delay: 0;
 
-webkit-animation-play-state: running;
 
-webkit-animation-fill-mode: forwards;
 
 
 
-moz-animation-name: anim_slides;
 
-moz-animation-duration: 24.0s;
 
-moz-animation-timing-function: linear;
 
-moz-animation-iteration-count: infinite;
 
-moz-animation-direction: normal;
 
-moz-animation-delay: 0;
 
-moz-animation-play-state: running;
 
-moz-animation-fill-mode: forwards;
 
}
 
 
 
/* css3 delays */
 
.slides ul  li:nth-child(2), .slides ul  li:nth-child(2) div {
 
-webkit-animation-delay: 6.0s;
 
-moz-animation-delay: 6.0s;
 
}
 
.slides ul  li:nth-child(3), .slides ul  li:nth-child(3) div {
 
-webkit-animation-delay: 12.0s;
 
-moz-animation-delay: 12.0s;
 
}
 
.slides ul  li:nth-child(4), .slides ul  li:nth-child(4) div {
 
-webkit-animation-delay: 18.0s;
 
-moz-animation-delay: 18.0s;
 
}
 
.slides ul li img {
 
display:block;
 
}
 
 
 
/* keyframes #anim_titles */
 
@-webkit-keyframes anim_titles {
 
0% {
 
left:100%;
 
opacity:0;
 
}
 
5% {
 
left:10%;
 
opacity:1;
 
}
 
20% {
 
left:10%;
 
opacity:1;
 
}
 
25% {
 
left:100%;
 
opacity:0;
 
}
 
100% {
 
left:100%;
 
opacity:0;
 
}
 
}
 
@-moz-keyframes anim_titles {
 
0% {
 
left:100%;
 
opacity:0;
 
}
 
5% {
 
left:10%;
 
opacity:1;
 
}
 
20% {
 
left:10%;
 
opacity:1;
 
}
 
25% {
 
left:100%;
 
opacity:0;
 
}
 
100% {
 
left:100%;
 
opacity:0;
 
}
 
}
 
 
 
.slides ul li div {
 
background-color:#000000;
 
border-radius:10px 10px 10px 10px;
 
box-shadow:0 0 5px #FFFFFF inset;
 
color:#FFFFFF;
 
font-size:26px;
 
left:10%;
 
margin:0 auto;
 
padding:20px;
 
position:absolute;
 
top:50%;
 
width:200px;
 
 
 
/* css3 animation */
 
-webkit-animation-name: anim_titles;
 
-webkit-animation-duration: 24.0s;
 
-webkit-animation-timing-function: linear;
 
-webkit-animation-iteration-count: infinite;
 
-webkit-animation-direction: normal;
 
-webkit-animation-delay: 0;
 
-webkit-animation-play-state: running;
 
-webkit-animation-fill-mode: forwards;
 
 
 
-moz-animation-name: anim_titles;
 
-moz-animation-duration: 24.0s;
 
-moz-animation-timing-function: linear;
 
-moz-animation-iteration-count: infinite;
 
-moz-animation-direction: normal;
 
-moz-animation-delay: 0;
 
-moz-animation-play-state: running;
 
-moz-animation-fill-mode: forwards;
 
}

I hope that you'll enjoy with this effect.

CSS3 Fade slider

As a web designer, sometimes you will need to create the slide images with different effects for the banner ads on its products. If you feel bored, having to use the slide presentation using jquery or flash which of course only makes your web site becomes more heavily then I would share with you more how to create a photo slide without taking to luxuries, that just by CSS3

Posted on 01-07-2015 

Comment:

To comment you must be logged in members.

Files with category

  • Instructions for installing and configuring Windows Live Mail on Windows 10 simple

    Instructions for installing and configuring Windows Live Mail on Windows 10 simple

    View: 3227    Download: 0   Comment: 0

    Category: References     Fields: Other

    Windows 10 pre-installed Mail application for managing personal email on the device. The latest version of this application but improved a lot and support other email accounts such as Gmail or Yahoo Mail but users almost no "salty" really with this...

  • Step by step instructions to create social networking buttons with CSS3

    Step by step instructions to create social networking buttons with CSS3

    View: 2254    Download: 0   Comment: 0

    Category: References     Fields: Other

    CSS3 help web designers have the ability to create buttons (buttons) very nice, today I will share with you two tips decoration for button in your web becomes radiant beauty that no need to use photoshop.

  • You should understand the CSS Box Shadow

    You should understand the CSS Box Shadow

    View: 2324    Download: 0   Comment: 0

    Category: References     Fields: Other

    Effects his shadow was introduced in the previous article, however, in this article, I will guide more specific about shadow attributes, you try it with anything. First we try to learn css following paragraph:

  • How to do button movement with beautiful CSS3

    How to do button movement with beautiful CSS3

    View: 2023    Download: 0   Comment: 0

    Category: References     Fields: Other

    Previously to create motion effects button, you must draw the button in photoshop, then switched to flash to make it possible to move. But now you need not spend too much time doing it, all because of the emergence of CSS3.

  • Create a dropdown menu with CSS3 effects with beautiful transtions

    Create a dropdown menu with CSS3 effects with beautiful transtions

    View: 2250    Download: 0   Comment: 0

    Category: References     Fields: Other

    More of the dropdown menu you want to introduce to you, this will have the effect menu transitions (converted background of menu background from pale to dark). This menu works well on browsers like FF, Chrome, Safary, but unfortunately did not work...

  • How to hack css for all browsers you should know

    How to hack css for all browsers you should know

    View: 1864    Download: 0   Comment: 0

    Category: References     Fields: Other

    In the process of web design, which makes it the most headaches is how to design web pages that you can run on the browser. Especially when clients use the old as IE6 browser such. However, with this article, you will easily edit interface runs well...

  • Create Accordion with extremely beautiful CSS3

    Create Accordion with extremely beautiful CSS3

    View: 2340    Download: 0   Comment: 0

    Category: References     Fields: Other

    Accordion is a technique that helps you shortened the content that you want displayed on the website. It is often used for the display of submenus. In addition you can also use it for content, images. Before applying this procedure, you have to use...

  • Create the effect Hovercho images with Webkit and CSS3 is great

    Create the effect Hovercho images with Webkit and CSS3 is great

    View: 1990    Download: 0   Comment: 0

    Category: References     Fields: Other

    WebKit is one open source application framework provides the necessary components built one for your web browser. Along with CSS3, cả have contributed to very nice effect những previously only using JavaScript or JQuery thực beige.​

 
File suggestion for you
File top downloads
Codetitle.net - library source code to share, download the file to the community
Copyright © 2015. All rights reserved. codetitle.net Develope by Vinagon .Ltd