javascript - Achieve this outcome without the use of Modernizr? -


for reasons i'd rather not into. trying achieve effects of menu :

demo : http://tympanus.net/codrops/2013/04/19/responsive-multi-level-menu/

but without use of modernizr possibly using jquery in place. part of code tripping me :

$.dlmenu.prototype = {     _init : function( options ) { // options         this.options = $.extend( true, {}, $.dlmenu.defaults, options );         // cache elements , initialize variables         this._config();          var animendeventnames = {                 'webkitanimation' : 'webkitanimationend',                 'oanimation' : 'oanimationend',                 'msanimation' : 'msanimationend',                 'animation' : 'animationend'             },             transendeventnames = {                 'webkittransition' : 'webkittransitionend',                 'moztransition' : 'transitionend',                 'otransition' : 'otransitionend',                 'mstransition' : 'mstransitionend',                 'transition' : 'transitionend'             };         // animation end event name         this.animendeventname = animendeventnames[ modernizr.prefixed( 'animation' ) ] + '.dlmenu';         // transition end event name         this.transendeventname = transendeventnames[ modernizr.prefixed( 'transition' ) ] + '.dlmenu';         // support css animations , css transitions         this.supportanimations = modernizr.cssanimations;         this.supporttransitions = modernizr.csstransitions;          this._initevents();      }, 

codepen - http://codepen.io/eclipsewebdesign/pen/fcugj/

possible? appreciated tried using jquery limited knowledge not successful.

thank you

$('.top-menu').click(function() {     $(this).fadein('fast', function() {         if($(this).next().length > 0) {             $(this).fadeout('fast', function() {                 $(this).next().fadein('fast');         });         }     }); }); 

something this?


Comments

Popular posts from this blog

html - Styling progress bar with inline style -

java - Oracle Sql developer error: could not install some modules -

How to use autoclose brackets in Jupyter notebook? -