Sandor Spruit
2007-Jun-18 13:43 UTC
Heeeelp: why doesn''t Effect.BlindDown work as expected??
Hi all, First of all: a big hurray for those who have given us Prototype and Scriptaculous. Very nice piece of work! Now, I''ve a bit of a problem with the BlindDown Effect - see [1]. The idea is to create a kind of jargon dictionary for terms used in web pages. I''d like dictionary to appear as an overlay, in three steps: a. header appears; b. the space for the lemma rolls down like a blind; c. the actual lemma appears; The a. en c. steps work just fine. The whole process in reverse (upon clicking the ''close'' button) looks very smooth, but the BlindDown in step b. looks jerky and ugly. And I can''t figure out why! I''ve spent the entire morning experimenting, and Googling on the web for clues. My entire CSS is in-line now, and completely stripped down to the bare necessities. Still no luck :( I''d appreciate any help here, as this is part of a demo I''d like to have up and running before the summer holidays kick-in. Thanks in advance. cheers, Sandor [1] http://www.cs.uu.nl/people/sandor/vecht/ -- Information and Computing Sciences, Utrecht University, the Netherlands Personal coordinates: http://www.cs.uu.nl/people/sandor/ "It''s a beautiful day, don''t let it get away!", (U2, Beautiful day) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Greetings, It is a nice piece of work isn''t it? You''ll want in particular explicit height set to the element so the effect knows exactly how far it is supposed to blind down. Check out the markup on this page to see how objects are styled to deliver smooth effects. http://wiki.script.aculo.us/scriptaculous/show/CombinationEffectsDemo If you want to see behind the scenes then I''d recommend using Firebug https://addons.mozilla.org/en-US/firefox/addon/1843 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Sandor Spruit
2007-Jun-19 08:32 UTC
Re: Heeeelp: why doesn''t Effect.BlindDown work as expected??
Matt wrote:> Greetings, > > It is a nice piece of work isn''t it?Sure. Just a few more minor features and scripts get cross browser by default.> You''ll want in particular explicit height set to the element so the > effect knows exactly how far it is supposed to blind down. Check out > the markup on this page to see how objects are styled to deliver > smooth effects. http://wiki.script.aculo.us/scriptaculous/show/CombinationEffectsDemoTrust me, I''ve checked out the usual suspects :) My objects are styled with in-line CSS (not classes) trimmed done to the absolutely necessary attributes; all the objects have explicit height. I''ve previously seen jumpy animations, because in-line CSS interfered with a class definition elsewhere or several animations got mixed-up. I think I''ve both these potential problems ruled-out. I can get around this problem quite easily, but it is bugging me that I don''t have the slightest clue why my first attempt failed so miserably. I''ve gone over the Effects.js source, and tried a few adjustments there but to no effect (pun intended)...> If you want to see behind the scenes then I''d recommend using Firebug > https://addons.mozilla.org/en-US/firefox/addon/1843I hardly run Firefox without Firebug enabled these days ;) Sandor -- Information and Computing Sciences, Utrecht University, the Netherlands Personal coordinates: http://www.cs.uu.nl/people/sandor/ "It''s a beautiful day, don''t let it get away!", (U2, Beautiful day) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---