Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

Navigation sidebar animated

#sidebarCollapse span:first-of-type {
    /* rotate first one */
    transform: rotate(45deg) translate(2px, 2px);
}
#sidebarCollapse span:nth-of-type(2) {
    /* second one is not visible */
    opacity: 0;
}
#sidebarCollapse span:last-of-type {
    /* rotate third one */
    transform: rotate(-45deg) translate(1px, -1px);
}
Comment

Navigation sidebar animated

#sidebarCollapse.active span {
    /* no rotation */
    transform: none;
    /* all bars are visible */
    opacity: 1;
    margin: 5px auto;
}
Comment

Navigation sidebar animated

$(document).ready(function () {
    $('#sidebarCollapse').on('click', function () {
        $('#sidebar').toggleClass('active');
        $(this).toggleClass('active');
    });
});
Comment

PREVIOUS NEXT
Code Example
Javascript :: grab params 
Javascript :: react native star rating component 
Javascript :: convert nested json to query string 
Javascript :: use variable in form action vuejs 
Javascript :: Instead of creating a duplicate of the property each time, we can simply add the property to the prototype, since all instances have access to the prototype object. 
Javascript :: get current tab url in chrome extension in popup 
Javascript :: format currency javascript 
Javascript :: tictactoe using Jquery 
Javascript :: unique id generator javascript 
Javascript :: destructring global state at one place 
Javascript :: Serve JSON on a Specific Route 
Javascript :: node.js core modules 
Javascript :: update instance in sequelize 
Javascript :: poo javascript heritage 
Javascript :: assignment of struct in solidity 
Javascript :: code ELIFECYCLE npm ERR! errno 126 
Javascript :: repeat a block as many times as a nember jsx 
Javascript :: createSearchParams 
Javascript :: Declaring Variables Shorthand javascript 
Javascript :: taylors javascript test 
Javascript :: @material-ui/core/Field 
Javascript :: javascript variable without value 
Javascript :: Your task is to take every letter and its index and form a string out of them. javascript 
Javascript :: how to produce null in accessing array function in javascript 
Javascript :: replace text with hyperlink 
Javascript :: why typescript is superset of javascript 
Javascript :: code of copy button in js 
Javascript :: write a program to print patter usign recursion in javascript 
Javascript :: how to get length of number in javascript 
Javascript :: regex match caret 
ADD CONTENT
Topic
Content
Source link
Name
4+1 =