Commit faa75d65 authored by quentin.vrel's avatar quentin.vrel

overlaping front and back of a tile

parent 0524a92b
<template>
<div class="hello">
<h1>{{ id }}</h1>
<div>
<button class="tile-symbol">
<img :src="this.background" :width="this.width" :height="this.height"/>
<img :src="this.svg" :width="this.width" :height="this.height"/>
<img class="tile-background" :src="this.background" :width="this.width" :height="this.height"/>
<img class="tile-front" :src="this.svg" :width="this.width" :height="this.height"/>
</button>
</div>
</template>
......@@ -39,4 +38,13 @@ export default {
background: transparent;
border: none;
}
.tile-background{
position: relative;
top: 0;
left: 0;
}
.tile-front{
position: relative;
transform: translateX(-100%);
}
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment