Stylegala Forums » Forums list » Javascript / DOM
simple javascript effects/transitions
simple javascript effects/transitions
Goto page 1, 2, 3, 4, 5, 6 Next
Post new topic
Reply to topic
| Author | Message |
|---|---|
Lost_User
|
Hi everyone,
I'm a long time reader of this forum, but it's the first time I post here. I've created a small javascript effects library (3kb). You can get it here: http://moofx.mad4milk.net or watch some other demos here: http://moofx.mad4milk.net/tests.html It requires prototype.js (http://prototype.conio.net) to work, but a stripped down version (for effects only) is included in the download. Just thought it might be useful to someone, since I've recently seen some posts about javasript for hiding/showing html elements. |
| Sponsor | |
Lost_User
|
This is really great. I've been looking into AJAX recently, but the stuff on script.aculo.us is a bit too specific for my liking. Your scripts are exactly what I've been looking for.
Thanks for sharing this. |
Lost_User
|
I agree, thanks for sharing! Transitions are very slick. |
Lost_User
|
I have been trying to achieve this effect with ajax for a website I'm working at, and guess what? Somoene has done it for me thank you for sharing this.
Massimo |
Lost_User
|
nice one |
|
stylegala Site Admin
|
Very nice indeed. I had to post this in the Stylegala news.
Thanks! |
|
G3 Preferred member
|
Perfect! I have a site to redesign that will have a ton of content. Some of those transitions will be the perfect solution!
How will these degrade though? What happens with javascript disabled? Thank you so much! |
Lost_User
|
Thanx guys for your positive feedbacks, I didn't expect all this!
How will these degrade though? What happens with javascript disabled? All the effects have a method called hide. Use it to start the page with the element hidden.
This way the element is hidden with javascript (for opacity effects the opacity is set to 0, for height effects the height is set to 0, and so on). If you have javascript disabled the element won't get hidden. And everyone gets content! |
|
abundance New member
|
that's so cool, valerio!
mille grazie!... :) |
Lost_User
|
I can't get it to work when I want to begin with my div hidden. I use the following code:
It starts hidden. But when I click it does the fadesize but then it immediately hides the div again. I'm no javascript expert. Should I split the hide part form the actual fx part ? How to solve this? |
Goto page 1, 2, 3, 4, 5, 6 NextPage 1 of 6
Powered by phpBB. © 2001, 2006 phpBB Group & Logo Design
