सर्वर से नहीं, मेरे स्थानीय फाइल सिस्टम पर सही ढंग से काम करता है। यह किसी कारण से सिंक से शुरू हो रहा है। किसी भी मदद के लिए धन्यवाद। वेबकिट के लिए केवल वेंडर प्रीफिक्स्ड। क्रोम 26.Demo में परीक्षण किया गया: http://cssdesk.com/jjqKKकीफ्रेम एनिमेशन सिंक में नहीं
HTML:
<ul class="slides">
<li><img src="http://placehold.it/200x100" /><span class="caption">Image 1</span></li>
<li><img src="http://placehold.it/200x100" /><span class="caption">Image 2</span></li>
<li><img src="http://placehold.it/200x100" /><span class="caption">Image 3</span></li>
</ul>
सीएसएस:
ul.slides{
position: relative;
background: #000;
height: 100px;
width: 200px;
padding: 0;
}
ul.slides li{
position: absolute;
left: 0px;
top: 0px;
right: 0px;
bottom: 0px;
height: inherit;
width: inherit;
padding: 0;
margin: 0;
-webkit-animation: slideshow 9s linear infinite;
}
ul.slides.clickpause:active li{
-webkit-animation-play-state:paused;
}
ul.slides li:nth-child(1){ -webkit-animation-delay: 0s; }
ul.slides li:nth-child(2){ -webkit-animation-delay: 3s; }
ul.slides li:nth-child(3){ -webkit-animation-delay: 6s; }
@-webkit-keyframes slideshow{
0%{
opacity: 0;
z-index: 2;
}
3%{
opacity: 1;
}
30%{
opacity: 1;
}
33%{
opacity: 0;
}
34%{
z-index: 1;
}
100%{
opacity: 0;
}
}
ul.slides li img{
position: absolute;
left: 0px;
top: 0px;
right: 0px;
bottom: 0px;
padding: 0;
margin: 0
}
ul.slides li span{
position: absolute;
left: 0px;
right: 0px;
bottom: 0px;
background: rgba(40, 40, 40, 0.8);
color: #FFF;
padding: 5px
}
डेमो: http://cssdesk.com/jjqKK
कृपया कोई जवाब है कि जावास्क्रिप्ट का उपयोग करें। धन्यवाद!
आप, मतलब है कि यह 'चमक' तीसरी स्लाइड jsbin उदाहरण देखें ? – Chris
मेरे क्रोम पर अच्छा लग रहा है। शायद शुरुआत में एक फ्लैश था, मैं नहीं कह सकता। –
@ क्रिस नहीं, यह यहां सिंक में नहीं है। उदाहरण के लिए, स्लाइड 1 3s के लिए दिखाता है, जबकि स्लाइड 2 1 से कम के लिए दिखाता है; फिर स्लाइड 1 फिर से दिखाई देने से पहले स्लाइड 3 के बाद देरी हो रही है। – Mooseman