Skip to content
This repository has been archived by the owner on Nov 1, 2018. It is now read-only.

screenbeacon/pseudo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

pseudo

Pseudo allows you to style CSS pseudo elements like :before and :after with JavaScript. This is very useful for positioning elements dynamiclly like pips on a tooltip or dropdown element. Styling these elements is usually relagated to just a CSS approach.

Example:

pseudo.style('.tooltip:after', {
  bottom: '15px',
  left: '27px'
});