移動端布局 小記

來源:互聯網
上載者:User

標籤:cal   底線   wrap   bezier   ase   sla   abs   over   左右   

 

vue 做 左側功能表列,wrapper 為父級,彈出時顯示並從左側做滑入動畫,transform: translateX(-250px); 漸隱漸現。子級左右布局左側60%,右側40%,點擊滑出菜單且隱藏

.fadeIn-enter-active {  transition: all .4s ease;}.fadeIn-leave-active {  transition: all .2s cubic-bezier(1.0, 0.5, 0.8, 1.0);}.fadeIn-enter, .fadeIn-leave-active {  transform: translateX(-250px);  opacity: 0;}

 

給a標籤hover效果 添加 底線 過渡動畫

a {  position: relative;  text-decoration: none;  cursor: pointer;}a::after {  content: "";  position: absolute;  left: 0;  bottom: 0;  width: 100%;  height: 2px;  background-color: #3F51B5;  transform: scaleX(0);  transition: .3s ease-in-out;}a:hover::after {  transform: scaleX(1);  transition: .3s ease-in-out;}

 

移動端布局 小記

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.