This repository has been archived by the owner. It is now read-only.
A polyfill for <details> tag.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


A polyfill for <details> tag.
Unfortunately, a seamless integration was unsuccessful.
To manipulate <details> tags from Javascript, use our API:

Know if a tag is open or no:

Open a tag

Close a tag

Event handlers:
	$('details').on('open', function(){
		console.log('Opened ', $(this));
	$('details').on('close', function(){});

Initialize polyfill on some new elements:

To make a tag animated
	<detail class=animated>

To control animation speeds
	<detail class=animated data-animation-speed="slow/fast/1000">

This will also manipulate native implemenations.