Я использую плагин jQuery plax: https://github.com/cameronmcefee/plax
Я сделал свой собственный пример и хотел бы, чтобы он был отзывчивым. Прямо сейчас позиция абсолютна для движущихся элементов в css, но мне нужно, чтобы она была относительной, поэтому я могу сделать ее отзывчивой.
Но я не могу заставить его работать
См. мою скрипку: http://jsfiddle.net/FfKgY/
Я думаю, что проблема с css:
#shell {
display: block;
position: relative;
margin: 100px auto;
width: 100%;
max-width: 318px;
height: 100%;
max-height: 318px;
z-index: 1;
}
#plax-logo {
width: 136px;
height: 70px;
position: absolute;
top: 170px;
left: 90px;
z-index: 3;
background:#099;
}
#plax-sphere-1 {
width: 93px;
height: 92px;
position: absolute;
z-index: 4;
top: 189px;
left: 191px;
background: #3CC;
}
#plax-sphere-2 {
width: 215px;
height: 215px;
position: absolute;
z-index: 2;
top: 100px;
left: 53px;
background: #3C9;
}
#plax-sphere-3 {
width: 93px;
height: 92px;
position: absolute;
top: 35px;
left: 32px;
z-index: 1;
background: #669;
}