How to start the Fancybox Carousel on the very first slide when infinite is equals to 1? - carousel

Is it possible to start the carousel on the very first slide but keeping the slidesPerPage: 1 and infinite: true? when you land on the page like this image?
Right now it starts with cards 6, 1, 2. Please see this demo right here.
Demo Playground
I don't even know why it would start to number 6 when the slide starts at number 1. If I remove the slidesPerPage: 1, the carousel would slide at 3 slides per turn and I feel that's a bit too fast. Is there a way to make it slide by 1 and still start it with the first slide?
Or is it possible to land on the page where the carousel starts on slide 2? That will make number 6 card to the far left, hidden and makes card 1, 2, 3 the only visible card when you land on the page.

Related

ngx datatable vertical scroll bar does not come back to start of page if there there are more records than defined page size

Pre condition -
Have pagination, searchTerm, and vertical scrolling implemented and works fine.
records to show per page = 25
Steps to reproduce
User has searched for say 'batMan0' in the list of 100 files. Let's say names are from batMan001.txt to batMan099.txt.
User then scrolls to say page 2 by grabbing scrollbar and pulling it down. Now total number of files on the table is = 50 ( batMan001.txt to batMan050.txt)
Now user refines the search term to 'batMa', (so that search result increases). Once the search is finished, pageNumber resets to 0. This is OK.
The Problem -
Problem is with scroll bar. It does not come back to first row of the table and stays at the same place where user has left on table last time. And because of this, the rows are not visible and user has to scroll up to see the table rows.
How can I fix this issue i.e. bring back the scroll bar to first position.
Any help would be highly appreciated.

Start a Powerpoint slideshow from a slide without showing the first slide for a brief moment

I think the title is self - explanatory.
I want to use a VBA macro to start the slideshow from a specific slide, for example the 5th one.
If i use
ActivePresentation.SlideShowSettings.Run.View.GotoSlide 5
it flashes the first slide for a brief moment. I want to get rid of that.
I'm thinking that it might be possible to show the slideshow with a black screen only, change the slide and then show the slideshow correctly, but I don't know how to start it as a black screen.
Try this:
With ActivePresentation.SlideShowSettings
.RangeType = ppShowSlideRange
.StartingSlide = 5
.Run
End With
edit: .RangeType = ppShowSlideRange was missing.

Hide/unhide slides not work fine if I go to the end of the show

I have a powerpoint with a macro.
1) at the begin, the last 4 slides of the show are hidden.
2) When I run my show, I go on a slide which contains 4 checkboxes. These checkboxes can hide or unhide the last 4 slides. If I check, then, the slide is unhidden and if I uncheck, in the same way, the slide is hidden. For example, I check the checkbox number 3 and only the slide number 3 is unhidden. Or, I check the checkboxes number 2 and 4 and only the slides number 2 and 4 are unhidden. On the contrary, if I uncheck the checkbox, for example number 2, I hide the slide number 2.
3) for the example, I check the checkboxes number 1 and 3 which unhide the slides number 1 and 3.
4) When I go to the next slide after this, only the slides number 1 and 3 are unhidden. Good.
5) Then, I go back to the slide containing the checkboxes.
6) I uncheck the checkboxes number 1 and 3 and check the number 4.
7) I go to the next slide and only the slide number 4 is unhidden. Good.
8) Now, I go to the next slide from where I'm at, the slide number 4, and there is no more slide. So, I see the end's screen of the show.
9) If I decide to go back to the show from this end, I see the slide number 4, but also, the slides number 1 and 3 that I unchecked before at the 6). My trouble is that I don't understand why the slides that I unchecked which would be hidden, are unhidden if I go back from the end's screen of the show ?
I try to find an explanation on the Web but I didn't find something on this trouble.
Thanks for your help.
I can repro something like this this w/o using code in PPT 2016.
If this will run on a PC that you control, do this:
File | Options | Advanced
Under "Slide Show", remove the check next to "End with black slide"
Click OK
Now PPT will simply end the show when the user is on the last slide and tries to go forward.

Centered slides when slidesPerView number larger than contained slides

In cases where we have dynamic content to be added. Is it possible to have slides centered before the first row of slidesPerView is reached?
For example, have 1, 2 or 3 slides centered when slidersPerView is set to 4 like shown:

how to create a sliding open door effect

i'm looking to create a sliding open door effect with jquery that has the following functionality:
arrive on the page and the doors are closed
click a link and the doors slide outwards a fixed amount on the x-axis
click the same link again and the doors close
i started out with the concept here, which works great:
http://buildinternet.com/2009/07/animate-curtains-opening-with-jquery/
but realised that i wanted the doors to slide across, rather than shrink in size, using the type of functionality seen here:
http://ricostacruz.com/jquery.transit/
so i think what i am looking for is some type of 'animate' functionality:
http://api.jquery.com/animate/
this is the logic of the functionality i am trying to achieve:
static state:
background: an image that is revealed when the doors slide open.
door-left-inner: 122px wide x 244px high, centered and offset left -61px with z-index 3.
door-left-outer: 122px wide x 244px high, centered and offset left -151px with z-index 2.
door-right-inner: 122px wide x 244px high, centered and offset right 61px with z-index 3.
door-right-outer: 122px wide x 244px high, centered and offset right 151px with z-index 2.
onclick (all these functions take place at the same time):
door-left-inner x-position slide on click: -164px on x-axis.
door-left-outer x-position slide on click: -74px on x-axis.
door-right-inner x-position slide on click: 164px on x-axis.
door-right-outer x-position slide on click: 74px on x-axis.
here is a diagram of what i am trying to achieve:
attempted code (not currently working)
$("#open_close_doors").click(function(){ $("#leftdoor_inner").animate({"left": "-=50px"}, "slow");});​
and here is my jsfiddle attempt at getting one of the doors to slide - i figure once i know how to get one of the doors sliding i'll be able to apply the same logic to the others. also i'm a relative newb to jquery.
http://jsfiddle.net/9zsdN/
thank you.
Here's the corrected jsFiddle for the same: http://jsfiddle.net/9zsdN/1/
$("#open_close_doors").click(function(){ $("#leftdoor_inner").animate({"left": "-=50px"}, "slow");});​
It should be:
$(".open_close_doors").click(function(){
$("#leftdoor_inner").animate({"left": "-=50px"}, "slow");
});​
The difference lies in the way you access an element. As you can see, when you access an element by class, you use " .classsname" instead of "#classname" as you have done.
"#name" is used for accessing elements by their id.