Solved

How to auto start fade in an image without using :hover?

Posted on 2016-08-26
2
46 Views
Last Modified: 2016-08-29
How to auto start fade in an image without rollover a button.... thanks
0
Comment
Question by:mingchih
2 Comments
 
LVL 22

Accepted Solution

by:
Kim Walker earned 500 total points
ID: 41772627
As with your other question, CSS3 animations do not require a button. In this case, you would set up your @keyframes definition with opacity values instead of the transform in your other question. See the other question for details.

In the following CSS style, an img tag with the id fademe would begin fading 1 second after the page loads and would gradually fade away completely over a period of 5 seconds.
img#fademe {
	animation: example 5s 1s 1 forwards;
}
@keyframes example {
	0% { opacity: 1.0; }
	100% { opacity: 0; }
}

Open in new window

1
 

Author Closing Comment

by:mingchih
ID: 41775548
I probably will have more question coming up ^^
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
remove background quote mark from widget 6 51
CSS issue in Nested Master Pages 9 12
css selector 1 17
flex div overflows its container 4 22
When writing CSS, there are a few simple rules that will make your life easier.    1. Using ‘* {box-sizing:border-box;}’. Using this will wrap all your elements in a nice little compact box-model that will give you the width you want, like so... …
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question