test chrome animation

by bakhshi

HTML

<section class="panel">Here is panel</section>
<button class="open">open</button>

CSS

html, body {
    height:100%;
}
.panel {
    position:fixed;
    height:100%;
    width:0;
    opacity:0;
    -moz-transition: opacity 1s, width 1s;
    -o-transition: opacity 1s, width 1s;
    transition: opacity 1s, width 1s;
    right:0;
    top:0;
    background-color:blue;
    overflow-x: hidden;
    z-index: 5000;
}
.panel.open {
    opacity:0.98;
    width:400px;
}

JavaScript

$(function () {
    $('button.open').click(function () {
        $('.panel').toggleClass('open');
    })
})