-
Notifications
You must be signed in to change notification settings - Fork 0
Similar to sIFR but can do blocking around text. Uses jQuery and SWFObject.
mgunneras/h2swf-replacement
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
H2SWF by Mattias Gunneras
sIFR inspired heading to swf with blocking.
TODO:
- Automatically set width and hight of the element.
Dependencies:
- jQuery 1.3
- swfobject 2
Example Usage:
$('h1').h2swf({
debug : 0, // depends on console.log
alpha : .3, // blocking transparency
blocking : [8, 15, 8, 10], // blocking [top, right, bottom, left]
leading : -8, // line spacing
tracking : -5, // letter spacing
pad_desc : 2, // adds extra blocking on last line if that line's letters has descenders
background_color : '000000',
color : 'ffffff',
font_size : 70,
sharpness : 0,
thickness : 0,
swf : "../flash/header.swf", // path to the swf
height: 'callback', // number or 'callback'
width: 'callback', // number or 'callback'
prevent_widow : true, // prevents a single word on last line in some cases.
width_threshold : 5 // adjusts blocking width if line width difference < 5
});
TODO:
- Degrade gracefully for non Flash environments.
- Move settings and callback function into $.h2swf to avoid cluttering global namespace.
- Adjust blocked lines to be the same width if width difference is less than width_thresholdAbout
Similar to sIFR but can do blocking around text. Uses jQuery and SWFObject.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published