slide aligned to center of screen after animation
Permalink Browser Info Environment
Hi Jordi,
I am trying to setup your template on my dev server.
Here is the issue I have :
When using a link to a slide without animation, the slide is aligned to the top of the screen, which is what I want.
When using an arrow at the bottom of the slide, it goes to the next slide with the animation but it is centred (vertically) on the screen. Can I change this to get the slide aligned to the top of the screen instead ?
Thanks, and great template by the way !
I am trying to setup your template on my dev server.
Here is the issue I have :
When using a link to a slide without animation, the slide is aligned to the top of the screen, which is what I want.
When using an arrow at the bottom of the slide, it goes to the next slide with the animation but it is centred (vertically) on the screen. Can I change this to get the slide aligned to the top of the screen instead ?
Thanks, and great template by the way !
Type: | Ticket |
---|---|
Status: | Archived |
Hi Jordif,
Thanks for the fast reply.
This does exactly what I wanted.
Regards,
David
Thanks for the fast reply.
This does exactly what I wanted.
Regards,
David
Attention: Since there has been no activity on this issue for two weeks, this issue has been automatically archived.
To re-open this issue, reply to this message.
To re-open this issue, reply to this message.
Is it possible to make only the first bottom-arrow go to the top of the 2nd slide. Then when you navigate in the slide menu for example, it always goes to the middle of the slide.
For Example here:http://grafomantestsite1.be/
Now you always go to the top slide because i changed this:
For Example here:http://grafomantestsite1.be/
Now you always go to the top slide because i changed this:
scrollTo(slideOffset-toolbarOffset,null,scrollSpeed);
Hi,
very nice website! You always put the theme to great use, you keep surprising me :)
Maybe you could try replacing that line of code with this:
(If you click on the arrow it should take you to the top of the slide, otherwise it should center the slide)
Jordi
very nice website! You always put the theme to great use, you keep surprising me :)
Maybe you could try replacing that line of code with this:
if ( $(this).hasClass('bottom-arrow') ) { scrollTo(slideOffset-toolbarOffset,null,scrollSpeed); } else { scrollTo(slideOffset-navOffset,null,scrollSpeed); }
(If you click on the arrow it should take you to the top of the slide, otherwise it should center the slide)
Jordi
Hah, thanks!
Changed the code, works like a charm!
Changed the code, works like a charm!
Attention: Since there has been no activity on this issue for two weeks, this issue has been automatically archived.
To re-open this issue, reply to this message.
To re-open this issue, reply to this message.
thanks, glad you like the template!
Yes, by default the theme centers the slides vertically when clicking on the arrows or main navigation. I'll consider adding an option to disable this (so they are aligned to the top) in the next release.
Right now, if you want to change this, you only need to edit the "main.js" file (/packages/theme_long_story_short/themes/long_story_short/js/main.js). Find line 108:
and change it to:
Regards,
Jordi