Vue
by kabanoki
HTML
<div id="app">
<fake3d-image-effect
centered
fill-height-content
tag="div"
:image="img"
:image-map="img"
>
</fake3d-image-effect>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.6.10/vue.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@luxdamore/[email protected]/dist/Fake3dImageEffect.css">
<script src="https://cdn.jsdelivr.net/npm/@luxdamore/[email protected]/dist/Fake3dImageEffect.umd.min.js"></script>
<script>
const img =...
CSS
body {
background: #20262E;
padding: 20px;
font-family: Helvetica;
}
#app {
background: #fff;
border-radius: 4px;
padding: 20px;
transition: all 0.2s;
}
li {
margin: 8px 0;
}
h2 {
font-weight: bold;
margin-bottom: 15px;
}
del {
color: rgba(0, 0, 0, 0.3);
}
Vue
const Fake3dImageEffect = window['Fake3dImageEffect']['Fake3dImageEffect'];
new Vue({
el: "#app",
data: {
img: img
},
components: {
'fake3d-image-effect': Fake3dImageEffect
}
});