Loading ...
Sorry, an error occurred while loading the content.

Re: [ydn-javascript] YAHOO.util.Anim Problem

Expand Messages
  • Matt Sweeney
    Hi incursionsa, The opacity attribute values range from 0 to 1. This is based on the CSS 3 spec[1]. Changing the 100 in your second example to 1 should
    Message 1 of 2 , Oct 4, 2006
    • 0 Attachment
      Hi incursionsa,

      The "opacity" attribute values range from 0 to 1. This is based on the
      CSS 3 spec[1].

      Changing the "100" in your second example to "1" should correct this
      discrepancy.

      Matt

      [1] http://www.w3.org/TR/css3-color/#transparency


      incursionsa wrote:

      >Hi guys,
      >
      >I discover a problem in EaseOut and EaseIn. Not sure whether i
      >did it correctly. Please advice. :)
      >
      >Below are two Animation eg. The 1st one is easeOut and 2nd is easeIn.
      >Both have a duration value of 1. However it seems that easeIn is much
      >faster than easeOut. Anyone there to help? Thanks in advance.
      >
      >var animEaseOut = new YAHOO.util.Anim('slide-show-panel', { opacity: {
      >to: 0 } }, 1, YAHOO.util.Easing.easeOut);
      >
      >var animEaseIn = new YAHOO.util.Anim('slide-show-panel', { opacity: {
      >to: 100 } }, 1, YAHOO.util.Easing.easeIn);
      >
      >
      >
      >
      >
      >
      >Yahoo! Groups Links
      >
      >
      >
      >
      >
      >
      >
      >
      >
      >
      >
      >
      >
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.