Skip to content

Instantly share code, notes, and snippets.

<!--
Using the datalist element,
HTML5 allows you to create a list of data to autocomplete a input field.
Super useful!
Here is a sample code to re-use in your own projects.
Source: http://davidwalsh.name/datalist
-->
<input name="frameworks" list="frameworks" />
//One can make use of the following script to generate menus in an animated fashion. There are several ways of creating a menu such as list, drop down and many more.
function makeMenu(items, tags) {
// default tags
tags = tags || ['ul','li'];
var parent = tags[0];
var child = tags[1];
var item, value = '';
for (var i = 0,l = items.length; i < l; i++) {
item = items[i];
@bennyzhao
bennyzhao / animtion.css
Created September 19, 2013 00:50
Capture CSS3 Animation Events in JavaScript from:https://gist.github.com/kewah/4493678
#anim.enable
{
-webkit-animation: flash 1s ease 3;
-moz-animation: flash 1s ease 3;
-ms-animation: flash 1s ease 3;
-o-animation: flash 1s ease 3;
animation: flash 1s ease 3;
}
/* animation */