extended boundaries

Информация о пользователе

Привет, Гость! Войдите или зарегистрируйтесь.


Вы здесь » extended boundaries » расширь границы » ............


............

Сообщений 1 страница 2 из 2

1

...

0

2

Код:
<!--HTML-->
<div id="experiment">
    <div id="background-1"></div>
    <div id="content-1">
        <h2>Mouse over to begin animation</h2>
        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
    </div>
</div>


<style>
#experiment {
width: 500px;
height: 500px;
    position: relative;
}


#background-1 {
     background: url('https://paulrhayes.com/experiments/parallax/images/midground.png') 5% 5%,
    url('https://paulrhayes.com/experiments/parallax/images/foreground.png') 20% 20%,
    url('https://paulrhayes.com/experiments/parallax/images/background.png') 90% 110%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    position: absolute;
    -webkit-transition: left 300s linear;
    -moz-transition: left 300s linear;
    -o-transition: left 300s linear;
    -ms-transition: left 300s linear;
    transition: left 300s linear;
}

#experiment:target #background-1 {
    left: -5000px;
}

#experiment:hover #background-1 {
    left: -9999px;
}

#content-1 {
    margin: 6em 10em;
    background-color: #333;
    opacity: 0.95;
    color: #ccc;
    padding: 3em;
    border: 2px solid #666;
}

#content-1 h2 {
    margin: 1em 0;
    font-weight: bold;
    font-size:  26px;
    color: #fff;
}
</style>

0


Вы здесь » extended boundaries » расширь границы » ............


Рейтинг форумов | Создать форум бесплатно