Added a first zoom plate

Works great, let's make the code cleaner and use it everywhere
This commit is contained in:
2024-01-18 01:17:08 +01:00
parent 44c9f0c873
commit c07175f4fa
5 changed files with 70 additions and 21 deletions

11
src/utils/pictureZoom.js Normal file
View File

@@ -0,0 +1,11 @@
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);
}