Result jQuery //クリックイベント $('.open').click(function() { //パネルをアニメーションでトグル出来るようにする $("#panel").animate({width: 'toggle'}, 300); }); css #panel { height: 600px; width: 200px; padding:20px; background: #eee; float: left; display: none; color: #666; font-size: xx-large; } .open { height: 20px; width: 70px; background: #666; padding:20px; float: left; margin-top: 200px; color:#fff; } html <div id='panel
![サイドからパネルがスライドインする - かちびと.net](https://cdn-ak-scissors.b.st-hatena.com/image/square/4b2ef35a36765b6591cd58fa817af584f4c23cfb/height=288;version=1;width=512/https%3A%2F%2Fkachibito.net%2Fwp-content%2Fuploads%2F2024%2F07%2Fsiteimg.png)