Skip to content

simple fullscreen img script using pure JavaScript

License

Notifications You must be signed in to change notification settings

krittanon-w/IMG-BOX

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

IMG-BOX

Easy fullscreen img script by pure JavaScript

Using

// use image on src attribute
<img src="/image.png" onclick="img_box(this)">

// specify src path/url
<img src="/image.png" onclick="img_box('/image.png')">

// specify src path/url with different image path
<img src="/image.png" onclick="img_box('/alt_image.png')">

Configuration

var bg_color_img_box = 'rgba(0,0,0,0.9)'
var allow_hide_scroll_img_box = 'yes'
var use_fade_inout_img_box = 'yes'
var speed_img_box = 0.08
var z_index_dv_img_box = 999
var vopa_img_box, idpopup_img_box

TypeScript style

https://gist.github.com/scf37/b9eed984a705243c27527a2036f09c0f

About

simple fullscreen img script using pure JavaScript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published