8000 GitHub - techpaf/suyp: 🔛Thing that makes stuff slide.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

techpaf/suyp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

S.U.Y.P (Show Us Your Pugs Picts)

/!\ W.I.P • even not an alpha /!\

ABOUT :

SUYP is one more JS tool that helps you to create slideshow. The goal is to make something flexible, easy to customize, ready to use...

HOW IT WORKS :

See exemple.html for a full exemple, but in short you have to :

  • load suyp.css that defines some basic CSS rules • easy to customize
  • load suyp.js
  • instanciate the class like that :
suyp = new Suyp( $('#suyp'), {
	'slides': picturesUrl, // Array of urls
	'crop': true, // true -> cover, false -> contain
	'mode': 'slide-h', // Transition mode -> String
	'auto': true, // Automatic slider ? 
	'pictureDisplayTime': 1750, // Display time of each picture -> Number (ms) ex : 1000 = 1 sec
	'transitionDuration': 750, // Duration of the transition between picts -> Number (ms) ex : 1000 = 1 sec
	'transitionDelay': 250 // Delay between hiding the current pict and strat to display the prev / next picture -> Number (ms) ex : 1000 = 1 sec • NB : can be negative values
});	

DEPENDENCY :

jquery gsap

TO DO :

Improvements...Improvements everywhere.

CREDITS :

All the pugs picture are from unsplash.com under Do Whatever You Want licence.

To be precise :

501E

About

🔛Thing that makes stuff slide.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0