The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> Transition To Video
sonic4
post Feb 28 2017, 11:45 AM
Post #1





Group: Members
Posts: 7
Joined: 6-February 17
Member No.: 26,296



So you know how in older video games where, if you wait on a title screen long enough, you get a demo? I want to do that in CSS, however, i don't know how. Here's my @keyframes rule

@keyframes switch
{
from {background-image: url(images/titlescreen.gif)}
to {background-image: url(videos/commercial.mp4)}
}

Here's what I put in my body CSS (same sheet):

background-image: url(images/titlescreen.gif);
background-repeat: no-repeat;
background-size: cover;
animation-name: switch;
animation-duration: 10s;

IF this is impossible, then let me know.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic
sonic4   Transition To Video   Feb 28 2017, 11:45 AM
Christian J   So you know how in older video games where, if yo...   Feb 28 2017, 05:32 PM
sonic4   Thank you.   Mar 1 2017, 12:03 PM


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 19th April 2024 - 10:30 AM