Added a first zoom plate
Works great, let's make the code cleaner and use it everywhere
This commit is contained in:
11
src/utils/pictureZoom.js
Normal file
11
src/utils/pictureZoom.js
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user