Files
portfolio/src/utils/pictureZoom.js
LJ5O 8f0c4b3274 Added zoom plates on signs that needed it
Also made sure that pictures are pre-loaded, so we don't have a 2sec delay when showing them
2024-01-18 02:04:31 +01:00

13 lines
296 B
JavaScript

import $ from 'jquery';
//Show picture :
export function showPicture(link){
$("#picture_zoom img").attr("src", link);
$("#picture_zoom").fadeIn(400);
}
//Hide picture :
export function hidePicture(){
$("#picture_zoom").fadeOut(400, ()=>{
$("#picture_zoom img").attr("src", '');
});
}