Results 1 to 2 of 2

Thread: Ext.core.Element fadeIn and fadeOut don't work correct

    Wait! Looks like we don't have enough information to add this to bug database. Please follow this template bug format.
  1. #1
    Sencha User
    Join Date
    Feb 2010
    Posts
    4
    Vote Rating
    0
      0  

    Default Ext.core.Element fadeIn and fadeOut don't work correct

    I tried to use fadeIn and fadeOut without success. (ext 4.0.2a gpl)

    fadeOut only accept endOpacity parameter, but in api the correct parameter should be opacity.

    fadeIn doesn't works neither with endOpacity nor with opacity parameter

    here is the code I used:

    myDiv.fadeIn({ opacity: .75, duration: 3000});

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,382
    Vote Rating
    1536
      0  

    Default

    With this div:

    Code:
    <div id="testDiv" style="width: 400px; height: 400px; background-color: #cccccc; color: #ffffff;">Hello!</div>
    The following works as expected:

    Code:
    var el = Ext.get('testDiv');
    
    el.fadeOut({ opacity: .25, duration: 3000});
    
    setTimeout(function() {
        el.fadeIn({ opacity: 1, duration: 3000 });
    }, 4000);
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •