473,761 Members | 8,011 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How can i create a animation (like a logo fading away) before page loads?

lightwalker19
22 New Member
Hi there, i was wandering if its possible to create a animation before html page loads, where the animation fades away(like a logo) and then page is visible.

im using visual studio 2010, c#, html5 and css3.

How can i do this? thank you
Sep 6 '12 #1
6 2315
Rabbit
12,516 Recognized Expert Moderator MVP
One solution would be to use Javascript to decrease the alpha over time until the image is transparent.

Another would be to create a flash animation.

A third would be to use a gif and then use Javascript to remove the gif after the animation is over.

The first option is the easiest of the three, but the decision is up to you and what method you are most comfortable with. Once you have chosen a path, I can move your question to the right forum as this is not an asp.net question.
Sep 6 '12 #2
lightwalker19
22 New Member
i have a asp.net page with a lot of html5, i choose the best way. Please help thank you :D
Sep 6 '12 #3
Rabbit
12,516 Recognized Expert Moderator MVP
By best I assume you mean the first option. I will move your thread to the javascript forum because you can't do it with just ASP, HTML, and CSS.
Sep 6 '12 #4
Rabbit
12,516 Recognized Expert Moderator MVP
To accomplish what you want, use the onload event of the body to overlay an image and then call a setInterval to decrement the alpha over time. Once the alpha is 0, cancel the setInterval and push the image into a lower z-index.
Sep 6 '12 #5
lightwalker19
22 New Member
im new to javascript.. can you post some code? thank you for your help :D
Sep 7 '12 #6
Rabbit
12,516 Recognized Expert Moderator MVP
You should read a Javascript tutorial. I don't normally post code unless the poster had shown an attempt at the solution.
Sep 8 '12 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

4
25162
by: uNConVeNtiOnAL | last post by:
Hi - I can't call my js until the page is loaded down to the </body> tag - is there something similar to body onload that I can use to automatically run the script just before the page is done loading ??? Thanks
2
7083
by: TonyJeffs | last post by:
I'm new to this, and stole/doctored my code from the "Ugly JavaScript Handbook" I have a slide show program. First theres stuff to set up the array, and the time between slides Then a function startIt()is defined then a function stopIt() Then two buttons, Start and Stop, which when pressed call the relevant functions
8
1694
by: windandwaves | last post by:
Hi Folk I want to create something like AMAZON: those who liked page A also liked page B (I am going to apply the concept to a few different selections, but to keep it simple I will talk about page popularity here - like AMAZON talks about purchase patterns: those who bought A also bought B, C and D). In my mysql table, I record everytime a visitor looks at a particular page (I keep track of people with sessions and they can only look...
1
1303
by: Amadelle | last post by:
Hi all and thanks in advance, I was wondering how to cache/persist a dataset between page loads (after button clicks, sorts, filters, etc.)? so that i don't have to requery the database everytime and create a new dataset and a new dataadapter everytime. I know that I can use the Session object and store the dataset in a session object, but I was wondering whether there is a better way of doing this. I appreciate your help and input...
0
1051
by: Antonio | last post by:
Hi, we are trying to create a page for our users that contains a lot of data. One datagrid loads very slow because the query behind it is complex. We would like to load up the page to the user with the information that returns fast right away and let the data grid take it's time to load (about 10 seconds). But we don't want the user to have to click something after the page loads to start the query . we want the page_load event to...
1
1644
by: Enigma Curry | last post by:
I'm looking for something that can display a pop-up "toaster" like animation like Gaim or MSN messenger does to notify of incoming messages. There's JToaster ( http://jtoaster.sourceforge.net/ ) for Java... anything similar for Python? Thanks! Ryan McGuire
3
2211
by: Dave Marden | last post by:
Is it possible to allow a person whom navigates to a particular page to type in a URL to a website they visit often, and have it be treated like code on the page itself for them to use it as a hyperlink? If so, any suggestions would be appreciated. Thanks, Dave Marden
0
1818
by: Deepak Rai | last post by:
Hi does anybody know that how to create panel like GMAIL chat window?
1
3150
by: timsamshuijzen | last post by:
The website I am developing is implemented as a Single Page Interface (SPI). During a visitor's session all new content gets loaded by JavaScript (Ajax), no new pages get loaded and the URL in the address bar does not change. This has many advantages for the website application I am building (I will not go into the details of the advantages here), but the obvious down-side is that the visitor will get unexpected results when pressing the...
3
1836
Kosal
by: Kosal | last post by:
Dear Sir/Madam I would like you to help to give me the example about create textbox like array but I want to create textbox depend on record in database if have 2 record textbox have 2 and display data in textbox also. so please help to advice thanks Best Regard Kosal
0
9376
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9988
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9923
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9811
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5266
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5405
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3911
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3509
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2788
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.