Skip to content

Star Wars style image wipes using the canvas element in HTML

Notifications You must be signed in to change notification settings

DaveSeidman/StarWarsWipe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

StarWarsWipe

Star Wars style image wipes using the canvas element in HTML

Dependencies

No external dependencies required.

Use

Create a div or any other container with the class "banner" than an inner container named "bannerImages" and include the js/swwipe.js file and the css/fade.css file. Optional parameters include fadeDelay, fadeDuration, fadeType

<div class="banner">
	<div class="bannerImages">
		<img src="img/han.jpg" 	data-fadeDelay="1" 	data-fadeDuration="3" 	data-fadeType="cross-lr" 		data-fadeWidth=".1">
		<img src="img/kylo.jpg" data-fadeDelay="1" 	data-fadeDuration="3" 	data-fadeType="radial-btm" 		data-fadeWidth=".1">
		<img src="img/rey.jpg" 	data-fadeDelay="1" 	data-fadeDuration="3" 	data-fadeType="cross-du" 		data-fadeWidth=".1">
		<img src="img/leia.jpg" data-fadeDelay="1" 	data-fadeDuration="3" 	data-fadeType="diagonal-tl-br" 	data-fadeWidth=".1">
		<img src="img/finn.jpg" data-fadeDelay="1" 	data-fadeDuration="3" 	data-fadeType="radial-in" 		data-fadeWidth=".1">
		
	</div>
</div>

About

Star Wars style image wipes using the canvas element in HTML

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published