Skip to content

Have a box flow around and highlight currently selected sections

Notifications You must be signed in to change notification settings

RangerMauve/highlight

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

highlight

Have a box flow around and highlight currently selected sections

Usage

Install with component:

component install rangermauve/highlight

Quick example:

var highlight = require("highlight");

var my_element = document.getElementById("some_section");

// Dim everything but your element
highlight(my_element);

setTimeout(function(){
	// Stop highlighting
	highlight();
},2000);

Also, check out test.html for a nicer example (make sure to build the component first)

About

Have a box flow around and highlight currently selected sections

Resources

Stars

Watchers

Forks

Packages

No packages published