linear-gradient mixin

@mixin gradientAnimation($start, $end, $transTime) { background-size: 100%; background-image: $start; position: relative; z-index: 100; &:before { background-image: $end; content: ""; display: block; height: 100%; position: absolute; top: 0; left: 0; opacity: 0; width: 100%; z-index: -100; transition: opacity $transTime; } &:hover { &:before { opacity: 1; } } }
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章