Skip to content

KaiHotz/Scss-Dynamic-Sprite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scss Mixin for Dynamic Sprites

Usage:

params: dynamic-sprite(width , Nr. of images, height of srite.png, path to sprite.png, direction to float)

Eg.:

@include dynamic-sprite(50px, 10, 67, 'path to sprite.png', 'left');

Important:

The 3rd param that is for the height of the sprite.png image is in px but dosen't go withe the actual px statement, Just the number value.

Example

Original Sprite:

dynamic sprite

With Mixing

Floating left:

@include dynamic-sprite(50px, 10, 67, '../images/sprite_flags.png', 'left');

dynamic sprite

Floating right:

@include dynamic-sprite(30px, 10, 67, '../images/sprite_flags.png', 'right');

dynamic sprite

Floating none:

@include dynamic-sprite(50px, 10, 67, '../images/sprite_flags.png', 'none');

dynamic sprite

About

Scss Mixing for Dynamic Sprite

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published