Closed Carrie999 closed 3 years ago
.test{ position: absolute; .test-one{ top:400px; left:100px } .test-two{ top:500px; left:200px; position: relative; } } <div id="scene" className={cx('test')} > <div className={cx('test-one')} data-depth="0.2">My first Layer!</div> <div className={cx('test-two')} data-depth="0.6">My second Layer!</div> </div>
.test{ position: absolute; .test-one{ top:400px; left:100px } .test-two{ top:500px; left:200px; position: relative; } }
<div id="scene" className={cx('test')} > <div className={cx('test-one')} data-depth="0.2">My first Layer!</div> <div className={cx('test-two')} data-depth="0.6">My second Layer!</div> </div>
.test{ position: absolute; .test-one{ top:400px; left:100px } .test-two{ top:500px; left:200px; position: relative; } }
<div id="scene" className={cx('test')} > <div className={cx('test-one')} data-depth="0.2">My first Layer!</div> <div className={cx('test-two')} data-depth="0.6">My second Layer!</div> </div>