I want to add this code to my wordpress in elementor section can any one give me the working code?
https://codepen.io/kowlor/pen/NqVozL
this is the code i tried but i just see blank page, I don’ know what is the problem…
can any one help me through this?
<!DOCTYPE html>
<html>
<head>
<style>
$size: 300px;
$total: 40;
$time: 5s;
* {
box-sizing: border-box;
}
body {
width: 100%;
height: 100vh;
background: #000;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
}
.o-wrapper {
width: $size;
height: $size;
transform-style: preserve-3d;
animation: spin-that-shit $time linear infinite;
perspective: 500px;
}
.o {
position: absolute;
height: 100%;
width: 100%;
border: 1px solid;
border-radius: 100%;
@for $i from 1 through $total {
&:nth-child(#{$i}) {
transform: rotateY($i *
</style>
</head>
<body>
<div class="o-wrapper">
<?php for ($i = 1; $i <= 40; $i++) { ?>
<div class="o"></div>
<?php } ?>
</div>
</body>
</html>
2
Answers
Thank you! it's working! i have a few more questions
1.i make everything center in the code but still the content stick to the left and i don't know why! When i tried it in VS code Everything was good but when i put it in my wordpress the content stick to the left!