Activate your free membership today | Log-in

Friday, July 11th, 2008

YPulse: Fades and Pulsations Library

Category: Component, JavaScript, Library, Yahoo!

<>p>Kent Johnson has released YPulse a simple open source wrapper for the YUI Animation library that makes creating highlight fades and pulsing button glows a bit easier.

You pulse away with something like:

JAVASCRIPT:
  1.  
  2. var pulser = new YAHOO.squarebits.YPulse(
  3.   ‘my-div’,
  4.   ‘backgroundColor’,
  5.   ‘#FFFFFF’, // starting
  6.   ‘#FFFF00′, // ending
  7.   0.75, // The number of seconds for the start-end transition
  8.   0.10, // The number of seconds to wait after completing the start-end transition
  9.   0.75, // The number of seconds for the end-start transition
  10.   0.75, // The number of seconds to wait after completing the end-start transition
  11.   YAHOO.util.Easing.easeBoth, // The YAHOO easing method to use for the start-end transition
  12.   YAHOO.util.Easing.easeBoth // The YAHOO easing method to use for the end-start transition
  13. );
  14.  

Related Content:

  • Help find a planet: Adopt a star
    Hard-up astronomers are raising funds for research by selling the only wares they have: the...
  • rain fade
    Rain fade is an interruption of wireless communication signals as a result of rain or snow droplets whose separation approximates the signal...
  • FDE
    Fade -It for...
  • current
    Current is a flow of electrical charge carriers, usually electrons or electron-deficient...
  • form factor
    In computers, the form factor (sometimes hyphenated as form-factor) is the size, configuration, or physical arrangement of a computer hardware...

Posted by Dion Almaer at 8:42 am
1 Comment

++---
2.2 rating from 26 votes

1 Comment »

Comments feed TrackBack URI

Cool. But with so many arguments I would prefer YPulse accepting an object as a single parameter. Otherwise it looks like a lot of “magic” numbers to me.

Comment by aheckmann — July 11, 2008

Leave a comment

You must be logged in to post a comment.