我对鼠标移动时的圆圈(paralax)有影响。(就像这里:
Tutorial paralax)
但是我怎样才能使这个圈子响应,我怎样才能改变他们的位置以达到这样的效果:
以下是每个圈子:
I want every circle to be as diffrent element. not one picture.
<body>
<div class="parallax-container" data-jkit="[parallax:strength=2;axis=both]">
<div class="parallax paralax2"><img src="https://dl.dropboxusercontent.com/u/64675374/circle/circle1.png"></div>
</div>
</body>
答案 0 :(得分:1)
Hopefully this is what you are looking for..
HTML 的
<div class="parallax-container" data-jkit="[parallax:strength=3;axis=both]">
<div class="parallax small circle"></div>
<div class="parallax medium circle"></div>
<div class="parallax large circle"></div>
</div>
<强> See the result here... And even resize the browser to see it's responsiveness 强>