- Last post
- 3 Responses
you can edit the fade function (line 81) to include a slide animation in addition to the fade, and set the opacity to .4 or something (I think that's what you are asking).
You can also create a new function (fadeAnimate or the like) and add a new function that does what you want, probably the better option.
If I change it to "fade: true," on line 10 that's to replace the slide. I'd like to have both of them in place at the same time, or at least something that does not flash before fading. I'll look at the documentation. Thanks.
line 81 has an function called h.fade and line 10 has a fade attribute selected false.
Since the last time, I've finally found a slide I like. Here's the script:
And the HTML markup:
<div id="wslide-menu" class="parent-menu">
<a href="#parent-1">Slide 1</a> /
<a href="#parent-2">Slide 2</a>
<li> Quisque consectetur ipsum sed mauris mattis ut porta diam molestie. Duis tincidunt nibh vitae magna scelerisque sollicitudin vel vel ligula.</li>
<li> Donec aliquet semper libero, sit amet rutrum erat varius sed. Morbi at tellus eros, eu consectetur magna. Curabitur aliquam egestas sagittis.</li>
How can I add a fade or lower opacity to the inactive slide (LI)? The fade that exists in the script right now is only if I changed the effect to "fade: true," and isn't exactly what I want (fades instead of slides; I need both). There's also a "wactive" class that only applies for the navigation. I know this should be fairly simple but doesn't seem to be working from my attempts...