[Pro] Smooth scroll & WOW

Want to use a smooth Scroll on my page but I have a WOW slider on it and there seems to be a conflict with the WOW javascript in the .

I tried iframe from but can’t get the Slider to resize. I’m using Backdraft.

Billy


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

If you want to stick with Wow then you should probably find yourself a jQuery smooth scroll plug-in.

David


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Or put WOW in an iframe.

Walter

On Mar 24, 2014, at 6:44 PM, DeltaDave wrote:

If you want to stick with Wow then you should probably find yourself a jQuery smooth scroll plug-in.

David


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

You could try the following code in Page>Html Markup in the before slot after your reference to the jquery library.

<script>
$(function() {
  $('a[href*=#]:not([href=#])').click(function() {
    if (location.pathname.replace(/^//,'') == this.pathname.replace(/^//,'') && location.hostname == this.hostname) {
      var target = $(this.hash);
      target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
      if (target.length) {
        $('html,body').animate({
          scrollTop: target.offset().top
        }, 1000);
        return false;
      }
    }
  });
});
</script>

But this is a bit of a guess without seeing your page and how your links are formed. If they are just anchors you should be fine.

D


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options