Skip to content

Jody-Geers/css

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

css

Simple dom css manipulation that 'chains'.

Installation

Install with component(1):

$ component install Jody-Geers/css

API

<head>
	<script src="./build/build.js"></script>
</head>

<body>
  	
  	<div id="test-div"></div>
  	<span id="output"></span>
  	
</body>

<script>

	var css = require( 'jody-geers-css' );
  
	// set - uses el id
	css( 'test-div' )
		.width( '200px' )
		.height( '200px' )
		.position( 'relative' )
		.left( '100px' )
		.top( '100px' )
		.backgroundColor( 'blue' )
	;
	
  	// get
  	var testDivWidth = css( 'test-div' ).width();
  	
</script>

License

The MIT License (MIT)

About

simple dom css manipulation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published