Skip to content

anythingsliderfx not working after .load #216

Closed

Description

@Asarew

Hey guys,

im loading the slider in a div and the anythingslider plugin works but the anythingsliderfx plugin isnt working.
is there a way to work around this?

Activity

  1. Mottie commented on Nov 22, 2011

    @Mottie
    Contributor

    Please share the code you are using.

  2. Asarew commented on Nov 22, 2011

    @Asarew
    Author

    $(function(){
    //Anythingslider
    $('.slider').anythingSlider({
    easing : "easeInOutExpo",
    animationTime : 1000,
    autoPlay : true,
    autoPlayLocked : true,
    delay : 7000,
    delayBeforeAnimate : 0,
    enableKeyboard : false,
    appendControlsTo : $('#sliderbg div.nav')
    })
    .anythingSliderFx({
    inFx : {
    'span.logo' : { opacity: 1, bottom : '200px', duration: 800, easing : 'easeOutExpo' },
    'span.web' : { opacity: 1, right : '80px', duration: 300, easing : 'easeOutExpo' }
    },
    outFx : {
    'span.logo' : { opacity: 0, bottom : '-300px', duration: 800 },
    'span.web' : { opacity: 0, right : '-300px', duration: 500 }
    }
    });

    });

  3. Mottie commented on Nov 22, 2011

    @Mottie
    Contributor

    Are you sure that span.logo and span.web exist inside of the slider?

  4. Asarew commented on Nov 22, 2011

    @Asarew
    Author

    yeah im sure, the slider works when i put the html code static on the page, but when i load the html code and call the script i placed above. the slider doesnt show the fx animation

  5. Mottie commented on Nov 22, 2011

    @Mottie
    Contributor

    It sounds like interference from another script, can you share a link? or check to see if there are other errors on the page?

  6. Mottie commented on Nov 22, 2011

    @Mottie
    Contributor

    Ok, I found the problem and fixed it in version 1.7.17.

    There was a problem with the way this plugin was looking at the hash tags - it thought /#/home in the hash meant there was an element with an ID of #/home and looking for $('#/home') breaks the plugin - not anymore!

    Thanks for reporting this issue :)

    Edit: I should add that the issue was the combination of using the jQuery Address plugin with AnythingSlider.

  7. Asarew commented on Nov 22, 2011

    @Asarew
    Author

    hey, thanks for the quick reply.

    i've updated the plugin but itsn't working?

    could you take an other look at my site, maybe i did something wrong?

    Greetz
    Asare

  8. Mottie commented on Nov 22, 2011

    @Mottie
    Contributor

    It's working for me.. did you refresh the browser cache?

  9. Asarew commented on Nov 22, 2011

    @Asarew
    Author

    yeah i did, the slider isnt working when i add a hashtag to the url

  10. Mottie commented on Nov 22, 2011

    @Mottie
    Contributor

    Weird, I just tested it again in Chrome and it works.

  11. Mottie commented on Nov 22, 2011

    @Mottie
    Contributor

    Ugh, I guess I forgot about the ! in the hash... give me a minute.

  12. Mottie commented on Nov 22, 2011

    @Mottie
    Contributor

    Ok, I've updated the plugin again... sorry, I've never used the address plugin so I wasn't familiar with all of the different hashes... I didn't look for more, should I have? o.O

  13. Asarew commented on Nov 22, 2011

    @Asarew
    Author

    thanks its almost working!!

    only the first slide isnt working with fx

  14. Mottie commented on Nov 22, 2011

    @Mottie
    Contributor

    Hiya!

    I just got home and looked at the site... the first slide is animating for me, at least in Firefox. Are you still seeing it as not animating?

  15. Asarew commented on Nov 22, 2011

    @Asarew
    Author

    The first slide of the link without a hash tag is animated, but the slider
    link with the hashtag isnt working
    Op 22 nov. 2011 23:30 schreef "Rob G" <
    reply@reply.github.com>
    het volgende:

    Hiya!

    I just got home and looked at the site... the first slide is animating for
    me, at least in Firefox. Are you still seeing it as not animating?


    Reply to this email directly or view it on GitHub:
    https://github.com/ProLoser/AnythingSlider/issues/216#issuecomment-2841864

  16. Mottie commented on Nov 23, 2011

    @Mottie
    Contributor

    It seems to be a bit delayed... but it's still working for me. I tried both http://temp2.thenewgraphics.nl/ and http://temp2.thenewgraphics.nl/#!/home/ and both work for me, in Firefox.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions