2017-08-10 26 views

回答

0

當可見時,它似乎動畫顯示clipwrapper的寬度。 可能帶有類似Waypoints.js的東西。

https://github.com/imakewebthings/waypoints

具有光滑定義緩動和右定時。他們還使用滾動上的parallax,使其更平滑。

VERRY(檸)檸quikcly:

<div class="wrapper"> 
    <img ...> 
</div> 

// CSS 

.wrapper { 
    width: 300px; 
    height: 500px; 
    overflow: hidden; 
} 

.wrapper.visible { 
    width: 500px; 
    transition: width 1s ease-out; 
} 

img { 
    width: 500px; 
    height: 500px; 
} 
相關問題