Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 3rd Oct 2015, 02:55 PM   #1
Active Warrior
 
Join Date: 2009
Posts: 56
Thanks: 6
Thanked 14 Times in 13 Posts
Default
Help with CSS image slider
Share on: 
fb share twitter share gplus share more share

Hello

I'm trying to create an image slider similar to the one found in this link. Except that the CSS code isnt rendering..Here is the code: .css-slideshow{
position: relative;
max-width: 495px;
height: 370px;
margin: 5em auto .5em auto;
}
.css-slideshow figure{
margin: 0;
position: absolute;
}
.css-slideshow figcaption{
position: absolute;
top: 0;
color: #fff;
background: rgba(0,0,0, .3);
font-size: .8em;
padding: 8px 12px;
opacity: 0;
transition: opacity .5s;
}
.css-slideshow:hover figure figcaption{
transition: opacity .5s;
opacity: 1;
}
.css-slideshow figure{
opacity:0;
}
figure:nth-child(1) {
animation: xfade 48s 42s infinite;
}
figure:nth-child(2) {
animation: xfade 48s 36s infinite;
}
figure:nth-child(3) {
animation: xfade 48s 30s infinite;
}
figure:nth-child(4) {
animation: xfade 48s 24s infinite;
}
figure:nth-child(5) {
animation: xfade 48s 18s infinite;
}
figure:nth-child(6) {
animation: xfade 48s 12s infinite;
}
figure:nth-child(7) {
animation: xfade 48s 6s infinite;
}
figure:nth-child(8) {
animation: xfade 48s 0s infinite;
}


@keyframes xfade{
0%{
opacity: 1;
}
10.5% {
opacity:1;
}
12.5%{
opacity: 0;
}
98% {
opacity:0;
}
100% {
opacity:1;
}
}

kayme is offline  
Unread 3rd Oct 2015, 06:53 PM   #2
Active Warrior
 
Join Date: 2015
Location: Kherson, Ukraine
Posts: 42
Thanks: 0
Thanked 8 Times in 8 Posts
Default
Re: Help with CSS image slider
Share on: 
fb share twitter share gplus share more share

Hi. You can show all the code that you have written?
wordpress+expert is offline  
Unread 4th Oct 2015, 06:01 AM   #3
Create Your Success
 
MarketingWithArthur's Avatar
 
Join Date: 2015
Posts: 44
Thanks: 0
Thanked 18 Times in 17 Posts
Default
Re: Help with CSS image slider
Share on: 
fb share twitter share gplus share more share

Hmm... maybe it's problem with browser ?

Check browser support for CSS3 here:
CSS3 Reference

Best Regards,
Arthur

MarketingWithArthur is offline  
Closed Thread


Bookmarks

Tags
css, image, slider


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 01:14 PM.