navigate images in Fancybox using jquery - jquery-plugins

On my website, when someone clicks on an image, it gets enlarged I would like a navigation arrow to appear either side of the photo for people to scroll from photo to another. And photos should get scrolled when navigation arrows are clicked. I've used fancybox to display gallery.

jQuery("#fancybox-left").show();
jQuery("#fancybox-right").show();
this will display both side arrows if you have not intiated them while initiating fancybox.

Related

Vuetify 3 bottom v-navigation-drawer with tabs and scrollable content not closing on swipe down

I am using Vuetify 3 to create a bottom sheet for mobile using v-navigation-drawer with location="bottom" prop.
Everything works fine up to this point with swipe-down to close the bottom sheet. When I add touchstart, touchmove, touchend event listeners, all get triggered as expected.
But when I try to add a Tab component as per the documentation with some overflow content, the bottom sheet overflow scrolls on swipe up and down and tab navigation works on swipe left and right. I believe this is because of v-window is inside the drawer. Here when I add the above event listeners, touchstart does not get triggered inside the bottom sheet.
I want to implement the swipe-down to close behaviour (following the finger position) to the bottom sheet tab navigation that has overflow content. The bottom sheet will open on toggle, scrolls up and down on swipe up and down, switches tabs on swipe left and right and closes on swipe down further.
But without touchstart event it is impossible for me to go forward with this feature. (I'm planning to get the swipe direction and build the logic when to pull down the bottom sheet)
What am I missing here? Is there any other way to implement this?
CodePen link to what I tried. (Toggle device emulation)
add touchless to draver
<v-navigation-drawer
v-model="app.drawer"
touchless
app
>

Image with modal then zoom

So I am doing a modal for a website in which the image will be small. When you click on the button "Open Modal", the image opens. You are able to hover over the image and see pieces of it that are larger. You can the click on the x at the top right or click off of the modal and the modal closes. I have tried using a regular modal with:
----tried adding my code here, but this site won't let me---
Can someone please help?
The image is either too big to see the x at the top right to close the modal or the image doesn't hover correctly or the image just doesn't work.
I have tried using w3 schools to do this:
What I Want:
I want the image to be like the following picture (an image with a modal button below it) and then when you open the image in the modal by clicking on "View Full-Size Image", the image opens up larger. Then, you can hover over different parts of the image....(as you hover, you will see that zoomed part) in order to see that part larger. I am not sure what I am doing wrong. I need the modal, but I also need to be able to hover inside of the modal like a magnifying glass.
a modal with an image
inside of the modal

Mouse hover event with Locomotive horizontal scroll

I use LocoScroll to achieve a horizontal scroll.
On my page I also have a mouseover event that i used to show images.
The problem is that my images doesn't change on scroll, and i want to see the images shift as the user scroll through the page. I tried to insert my mouseover function inside locoScroll.on('scroll', (instance) => {}); But it don't seems to be the right direction.
You can find my code here :
https://codepen.io/acds/pen/MWrNeZQ

How to make image visible in Blackberry when button is pressed?

I want to show image when button is pressed on main screen in blackberry, How can I do this?
Simply I have a button, when I do press it, the data is loading from xml, and I want to show that data is loading, how can I do this, I have image(having text on it).
Help!
You can add that image in a vertical field manageer and add the vertical field manager to the screen on the button click. that's it..

Sencha Touch: Scrolling an Ext.Panel with a Vimeo video inside breaks the scroll

I'm running the latest download of sencha-touch off of the website download page.
I've got an html template with a nested iFrame that contains a Vimeo video.
When I touch any space AROUND the video, the panel scrolls exactly as expected, however, if I touch the video when trying to scroll, the whole app scrolls (tabbar menu, top toolbar, etc) and the actual panel doesn't scroll to reveal the content further down the page.
Is there a way to make it so that it scrolls properly no matter where on the screen you touch?
You probably want to take a look at the dom events that are being fired and try to stop the ones that are giving you the issue. At worst the user may not be able to scroll when touching the video first.
I had a similar issue with Google Maps (not in an iframe however). If it was embedded in a scrollable panel, the panel would scroll at the same time as interacting with the map. What I did was stop the propagation of the DOM events at the containing element. This resulted in the map being able to scroll/zoom, but the panel no longer responded to the events as well.
domEvent: function(evt, el, o)
{
evt.stopPropagation();
},
somefunction: function(){
this.googleMap.el.on({
tap: this.domEvent,
touchstart:this.domEvent,
touchmove:this.domEvent,
touchdown:this.domEvent,
scroll:this.domEvent,
pinch:this.domEvent,
pinchstart:this.domEvent,
pinchend:this.domEvent
});
}

Resources