Skip to content

DarbyBrown/imgSwap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

#imgSwap.js ##Super simple responsive images

Will be working on this readme soon

##Basic Usage

  <img src="img/path/image-sml.jpg" data-swap=true alt="my image" />  
  
  	<script src="js/imgswap.min.js"></script>
 	<script>
		imgSwap.init();
	</script>	

##Advanced Usage

  <img src="img/path/image-sml.jpg" data-swap=true alt="my image" />  
  
  	<script src="js/imgswap.min.js"></script>
 	<script>
		imgSwap.init({
		    selector: '[data-swap]', 
		    suffixes: ['sml', 'med', 'lrg'], 
		    breakpoints:[480, 900],
		    throttle: 250
		});
	</script>	

About

Super Simple Responsive Images

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published