Scroll Arrow Button

by hlmurray91

HTML

<div class="btn-scroll">
    <span class="arrow-leg"></span>
    <span class="arrow-down"></span>
</div>

SCSS

.btn-scroll {
    width: 60px;
    height: 30px;
    position: relative;
    cursor: pointer;
    margin: 50px;
    background-color: #ccc;
    &:before {
        position: absolute;
        content: '';
        bottom: 100%;
        left: 0;
        background-color: #ccc;
        width: 100%;
        height: 0;
        transition: height 0.3s ease;
    }
        &:hover {
            &:before {
                height: 15px;
            }
            .arrow-down {
                transform:  translateX(-50%) translateY(18px);
            }
            .arrow-leg {
                height: 18px;
            }
        }
}
.arrow-leg {
    position:absolute;
    left: 50%;
    width: 1px;
    height: 0;
    background-color: #282828;
    transform: translateX(-50%);
    transition: height 0.3s ease;
}
.arrow-down {
    position: absolute;
    left: 50%;
	width: 0; 
	height: 0; 
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 5px solid #282828;
    transform: translateX(-50%) translateY(0px);
    transition: transform 0.3s ease;
}