Makes buttons morph into overlays.
Based on Morphing Buttons Concept by Codrops.
http://tympanus.net/Development/ButtonComponentMorph/
- Include classie.js and JQuery
- Add the morphingButtons.js and morphingButtons.css file into your HTML
- Include Modernizr (<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js"></script>)
- Add the class "morph-button morph-button-overlay morph-button-fixed" into a div.
- Add the class "morph-content" into an element inside this div.
###Sample Code
<div class="morph-button morph-button-overlay morph-button-fixed">
<button type="button">Morph To Full Screen</button>
<div class="morph-content">
Content
</div>
</div>
When someone clicks on a div with class can-morph
Then that div will morph into a full-screen overlay with the contents of morph-content.
Mark Christian D. Lopez