0
0

More than 1 year has passed since last update.

javascript演習 5日目/30日

Posted at

覚えたこと

cssのflex
flex-grow:伸びる率(デフォルト0)
flex-shrink:縮む率(デフォルト1)

displat:flex;
/*  flex-grow | flex-shrink | flex-basis */
flex: 2 2 10%;

いつものようにスクリプトでクラスをつけて動かす

function toggleActive(e){
  if(e.propertyName.includes('flex')){
    this.classList.toggle('open-active');
  }
}

panels.forEach(panel => panel.addEventListener('transitionend' , toggleActive))

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0