-
I've a similar example as the original atroposjs website but adding this css to all the elements inside the container:
Works perfect on a desktop device but in my phone the Z axys is changing randomly, if I change the html elements order nothing changes, is always pulling this shadow to the top. <atropos class="position-island" :shadow="false" :highlight="false">
<img
class="position-island__image"
draggable="false"
src="~/assets/images/positions/island-shadow.png"
alt="shadow"
data-atropos-offset="-5"
/>
<img
class="position-island__image position-island__image--foreground"
draggable="false"
src="~/assets/images/positions/island.png"
alt="island"
data-atropos-offset="8"
/>
....
</atropos> or <atropos class="position-island" :shadow="false" :highlight="false">
...
<img
class="position-island__image position-island__image--foreground"
draggable="false"
src="~/assets/images/positions/island.png"
alt="island"
data-atropos-offset="8"
/>
<img
class="position-island__image"
draggable="false"
src="~/assets/images/positions/island-shadow.png"
alt="shadow"
data-atropos-offset="-5"
/>
</atropos> |
Beta Was this translation helpful? Give feedback.
Answered by
CKGrafico
Aug 12, 2022
Replies: 1 comment
-
I'm really confused.. this is happening only in mobile and is related to |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
CKGrafico
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm really confused.. this is happening only in mobile and is related to
data-atropos-offset
the background layer SHOULD have a bigger number than the foreground layer, I've expected the opposite :(