Hi! I created a rotating animation of our magazine via https://boockup.marco.land/ and pasted in the widget custom code section while using correct urls of the images for front, back, etc. but it doesn’t work out, the code is just shown as text in preview mode. can anyone help?
that’s the code btw:
Blockquote
/* Created with http://boockup.marco.land */
@-webkit-keyframes rotatingAnimationX {
0%{
-webkit-transform: rotateX(0deg);
transform: rotateX(0deg);
}
100% {
-webkit-transform: rotateX(360deg);
transform: rotateX(360deg);
}
}
@keyframes rotatingAnimationX {
0%{
-webkit-transform: rotateX(0deg);
transform: rotateX(0deg);
}
100% {
-webkit-transform: rotateX(360deg);
transform: rotateX(360deg);
}
}
@-webkit-keyframes rotatingAnimationY {
0%{
-webkit-transform: rotateY(0deg);
transform: rotateY(0deg);
}
100% {
-webkit-transform: rotateY(360deg);
transform: rotateY(360deg);
}
}
@keyframes rotatingAnimationY {
0%{
-webkit-transform: rotateY(0deg);
transform: rotateY(0deg);
}
100% {
-webkit-transform: rotateY(360deg);
transform: rotateY(360deg);
}
}
@-webkit-keyframes rotatingAnimationZ {
0%{
-webkit-transform: rotateZ(0deg);
transform: rotateZ(0deg);
}
100% {
-webkit-transform: rotateZ(360deg);
transform: rotateZ(360deg);
}
}
@keyframes rotatingAnimationZ {
0%{
-webkit-transform: rotateZ(0deg);
transform: rotateZ(0deg);
}
100% {
-webkit-transform: rotateZ(360deg);
transform: rotateZ(360deg);
}
}
html, body {
margin: 0;
padding: 0;
background-color: rgba(233, 237, 255, 1);
font-family: Helvetica Neue,Helvetica,Arial,sans-serif;
color: #4a4a4a;
text-transform: uppercase;
font-size: 10px;
text-align: center;
letter-spacing: .1em;
}
a {
color: inherit;
text-decoration: none;
}
.container {
width: 100vw;
height: 100vh;
overflow: hidden;
-webkit-perspective: 1200px;
perspective: 1200px;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
}
.container > div {
-webkit-transform-style: preserve-3d;
transform-style: preserve-3d;
}
.boockup {
-webkit-transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
}
.book-container {
-webkit-transform-style: preserve-3d;
transform-style: preserve-3d;
-webkit-animation: 10s rotatingAnimationY linear infinite;
animation: 10s rotatingAnimationY linear infinite;
}
.book-container > div {
position: absolute;
top: 0;
left: 0;
background-size: cover;
background-position: center center;
-webkit-backface-visibility: visible;
backface-visibility: visible;
}
.book-top, .book-bottom, .book-side-right {
background-size: auto auto;
background-repeat: repeat;
background-position: top left;
}
.book-front {
background-image: url(‘book-cover hosted at ImgBB — ImgBB’);
width: 270px;
height: 432px;
-webkit-transform: translate3d(-135px ,-216px ,10px) translate3d(0,0,0) rotateY(0deg);
transform: translate3d(-135px ,-216px ,10px) translate3d(0,0,0) rotateY(0deg);
}
.book-side-left {
background-image: url(‘book-spine hosted at ImgBB — ImgBB’);
width: 20px;
height: 432px;
-webkit-transform: translate3d(-135px ,-216px ,10px) translate3d(-10px, 0, -10px) rotateY(-90deg);
transform: translate3d(-135px ,-216px ,10px) translate3d(-10px, 0, -10px) rotateY(-90deg);
}
.book-side-right {
background-image: url(‘book-side hosted at ImgBB — ImgBB’);
width: 20px;
height: 432px;
-webkit-transform: translate3d(-135px ,-216px ,10px) translate3d(260px, 0px,-10px) rotateY(90deg);
transform: translate3d(-135px ,-216px ,10px) translate3d(260px, 0px,-10px) rotateY(90deg);
}
.book-top {
background-image: url(‘book-top hosted at ImgBB — ImgBB’);
background-position: bottom right;
width: 270px;
height: 20px;
-webkit-transform: translate3d(-135px, -216px ,10px) translate3d(0px, -10px, -10px) rotateX(90deg);
transform: translate3d(-135px, -216px ,10px) translate3d(0px, -10px, -10px) rotateX(90deg);
}
.book-bottom {
background-image: url(‘…/images/book-top.jpg’);
width: 270px;
height: 20px;
-webkit-transform: translate3d(-135px ,-216px ,10px) translate3d(0px, 422px, -10px) rotateX(-90deg);
transform: translate3d(-135px ,-216px ,10px) translate3d(0px, 422px, -10px) rotateX(-90deg);
}
.book-back {
background-image: url(‘book-back hosted at ImgBB — ImgBB’);
width: 270px;
height: 432px;
-webkit-transform: translate3d(-135px ,-216px ,10px) translate3d(0,0, -20px) rotateY(180deg);
transform: translate3d(-135px ,-216px ,10px) translate3d(0,0, -20px) rotateY(180deg);
}
#credit {
position: fixed;
bottom: 1em;
right: 1em;
z-index: 99;
background-color: #fff;
border-radius: 8px;
box-sizing: border-box;
padding: .3rem 1rem;
width: 21rem;
height: 20px;
-webkit-transition: background .2s;
transition: background .2s;
}
#credit:hover {
background-color: #d8d8d8;
}