Need help with a Slide JavaScript - javascript

I need to animate slides from left to right or right to left (depending upon which slide is selected). I have a JSFiddle set up with a JavaScript that I'm trying to get to work. Currently, it displays the last slide upon page load and scrolls top to bottom.
Can someone show me how to make it so it will display the first slide, then move the slides left to right and right to left when clicking the various links.
Please note: it has to be plain vanilla JavaScript -- no jQuery!
http://jsfiddle.net/thebluehorse/b25dR/
Any help would be greatly appreciated!

Here you go: http://jsfiddle.net/b25dR/18/
This even works in IE6.

Related

Slide up window in HTML/JS

Im trying to add a button/tab on the bottom right corner of the page. That when clicked slides up a window. I've seen this somewhere but i can't get it to work.
I found my answer shortly after. If you're looking for the same, this thread might help:
HTML CSS/JS Bottom navbar Sliding Up

Jquery Scrolling background animation like scooby doo

I'm looking for some help with pointers on how to achieve a moving background similar to scooby doo or other another cartoons - eg on the press of a button the background slides right to left, the character animates (starts a GIF animation).
Im creating an animating character who will sit on a left hand side div. On clicking the character the div behind the character (the whole background, and other divs within in it) will slide from right to the left and a new div container will slide in to fill the gap. So essentially will appear like the character is walking but in fact the background behind him is moving from right to left.
I'm sure this must have been achieved before, but looking for some pointers on how best to achieve it. Any help will be appreciated.
My thinking is that on trigger there will be a few actions:
GIF animation starts
Whole div slides from right to left
New div (which was hidden) is now shown
New div slides from right to left, behind the old div
Old div is hidden
The issue I am finding is creating a responsive site, therefore the size of the divs moving will not have a px value but a percentage value.
If anyone has tackled something similar before or has some pointers would be really appreciated.
Thanks,
Nick
Getting myself a little confused here. I've worked this out by using a full sized owl carousel and sitting an absolute image over the top. Get my mind in gear!!

Fullscreen Pageflip Layout to slideright full page

I'm a follower of Codrops tutorials by Tympanus.
I am trying to make the flip page to slide page of the existing code from following reference link http://tympanus.net/codrops/2012/12/11/fullscreen-pageflip-layout/
Actually i want to know whether flip page can be converted to slide page..
kindly help me to convert the flip page to slide page may be from right to left or left to right..
Thanks and Regards
Manoj
This template using BookBlock JS. You can see it with link: http://tympanus.net/codrops/2012/09/03/bookblock-a-content-flip-plugin/

Why the slider is not working?

My aim is to replicate the thumbnails to slide from left to right as per this page:
http://preview.vespercreative.com/citilogic/search_detail.php?pid=P2052
They key thing is I want the thumbnails to be on top. I managed to move the thumbnails on top using css but I can't get it to sroll from left to right.
http://www.iamvishal.com/dev/sites/all/themes/andrewcustom/js/slideshow/index.html
I am using the slideshow script from here
Any help will be highly appreciated.

Carousel with left en right button. Check on left and right button

I have a problem with my carousel. I've searched for similar questions. But found nothing.
I have make a carousel with three sections and a big image. And the carousel have a right and left navigate button. In the beginning, the first section is show. With a right carousel button. The left button is hidden. Because you can not click on the left. When you click to the other slide. The next section is show and the background image is animate 1000 pixels to the right.
You can see here the example: Example on jsfiddle
But now the problem. When i am on the first section. I have a right navigate button. The left button is hidden, because you can not click on it. When you are on the last section. The left button is show and the right button is hide.
But the problem is the middle section. When you are on the middle section. You have a navigatie button to the right. But not a navigate button to the left. And when I'm in the middle. I also left. And not just to the right.
How can i fix this in my script. Thanks for help.
You can change the code and see the code on jsfiddle.
Here you can see the code and example
I've made an example of my idea here: http://jsfiddle.net/upyZH/5/ , but the problem is still there. Firebug keeps telling me that the image sprite.png was not found. Perhaps that is your problem? And what are all those random charcaters in the css?
EDIT: Here you go: http://jsfiddle.net/upyZH/8/ , works like a charm :)
Have a look at my fiddle here: http://jsbin.com/abape3/14 It has the left and right buttons and works like what you've described.

Categories

Resources