I assume you are trying to port the code shown here:
There are several problems:
Firstly, the images are provided using using HTTPS, which Shotcut does not support. Either copy the images in a local directory on your computer and use these or find images that are supplied using HTTP.
Secondly, CSS animations like “transform” won’t work, you have to use “-webkit-transform” syntax instead.
Thirdly, some CSS directives, such as “perspective: 1000px” won’t work even if you use the “-webkit-” syntax, as they are not (yet) supported in Shotcut.
Lastly, Shotcut does not handle CSS-only animations well. Simply taking an example that works in a browser and using that as a simple Overlay HTML filter is highly unlikely to work the same as it does in the browser and is more than likely going to hang Shotcut.
Your best bet is to convert the CSS-only animation to a Javascript one and use WebVfx to integrate it tightly into the video frames, but even then, with certain key CSS directives being supported you are limited to what you can do.
See: www.elusien.co.uk/shotcut
I’ve modified the HTML/CSS of the example to (almost) work, but as I said, key directives have to implemented before it will work properly.
I’ll have a look at improving this using my framework, but I’m a bit busy just now, so it will be a little while.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<style>
/* 3D Slideshow */
* {
margin: 0;
padding: 0;
}
html, body {
max-width: 100%;
overflow-x: hidden;
overflow-y: auto;
background-color: #6adecd;
}
#slideshow {
margin: 0 auto;
padding-top: 50px;
height: 600px;
width: 100%;
background-color: #6adecd;
box-sizing: border-box;
}
.slideshow-title {
font-family: 'Allerta Stencil';
font-size: 62px;
color: #fff;
margin: 0 auto;
text-align: center;
margin-top: 25%;
letter-spacing: 3px;
font-weight: 300;
}
.sub-heading {
padding-top: 50px;
font-size: 18px;
} .sub-heading-two {
font-size: 15px;
} .sub-heading-three {
font-size: 13px;
} .sub-heading-four {
font-size: 11px;
} .sub-heading-five {
font-size: 9px;
} .sub-heading-six {
font-size: 7px;
} .sub-heading-seven {
font-size: 5px;
} .sub-heading-eight {
font-size: 3px;
} .sub-heading-nine {
font-size: 1px;
}
.entire-content {
margin: auto;
width: 190px;
perspective: 1000px;
-webkit-perspective: 1000px;
position: relative;
padding-top: 80px;
}
.content-carrousel {
width: 100%;
position: absolute;
float: right;
animation: rotar 15s infinite linear;
transform-style: preserve-3d;
-webkit-animation: rotar 15s infinite linear;
-webkit-transform-style: preserve-3d;
}
.content-carrousel:hover {
animation-play-state: paused;
cursor: pointer;
}
.content-carrousel figure {
width: 100%;
height: 120px;
border: 1px solid #3b444b;
overflow: hidden;
position: absolute;
}
.content-carrousel figure:nth-child(1) {
transform: rotateY(0deg) translateZ(300px);
-webkit-transform: rotateY(0deg) translateZ(300px);
} .content-carrousel figure:nth-child(2) {
transform: rotateY(40deg) translateZ(300px);
-webkit-transform: rotateY(40deg) translateZ(300px);
} .content-carrousel figure:nth-child(3) {
transform: rotateY(80deg) translateZ(300px);
-webkit-transform: rotateY(80deg) translateZ(300px);
} .content-carrousel figure:nth-child(4) {
transform: rotateY(120deg) translateZ(300px);
-webkit-transform: rotateY(120deg) translateZ(300px);
} .content-carrousel figure:nth-child(5) {
transform: rotateY(160deg) translateZ(300px);
-webkit-transform: rotateY(160deg) translateZ(300px);
} .content-carrousel figure:nth-child(6) {
transform: rotateY(200deg) translateZ(300px);
-webkit-transform: rotateY(200deg) translateZ(300px);
} .content-carrousel figure:nth-child(7) {
transform: rotateY(240deg) translateZ(300px);
-webkit-transform: rotateY(240deg) translateZ(300px);
} .content-carrousel figure:nth-child(8) {
transform: rotateY(280deg) translateZ(300px);
-webkittransform: rotateY(280deg) translateZ(300px);
} .content-carrousel figure:nth-child(9) {
transform: rotateY(320deg) translateZ(300px);
-webkit-transform: rotateY(320deg) translateZ(300px);
} .content-carrousel figure:nth-child(10) {
transform: rotateY(360deg) translateZ(300px);
-webkit-transform: rotateY(360deg) translateZ(300px);
}
.shadow {
position: absolute;
box-shadow: 0px 0px 20px 0px #000;
border-radius: 1px;
}
.content-carrousel img {
image-rendering: auto;
transition: all 300ms;
-webkit-transition: all 300ms;
width: 100%;
height: 100%;
}
.content-carrousel img:hover {
transform: scale(1.2);
transition: all 300ms;
-webkit-transform: scale(1.2);
-webkit-transition: all 300ms;
}
@keyframes rotar {
from {
transform: rotateY(0deg);
-webkit-transform: rotateY(0deg);
} to {
transform: rotateY(360deg);
-webkit-transform: rotateY(360deg);
}
}
</style>
</head>
<body>
<!-- 3D Slideshow Section -->
<section id="slideshow">
<div class="entire-content">
<div class="content-carrousel">
<!-- <figure class="shadow"><img src="https://images.pexels.com/photos/758733/pexels-photo-758733.jpeg?w=940&h=650&auto=compress&cs=tinysrgb"/></figure>
<figure class="shadow"><img src="https://images.pexels.com/photos/21261/pexels-photo.jpg?w=940&h=650&auto=compress&cs=tinysrgb"/></figure>
<figure class="shadow"><img src="https://images.pexels.com/photos/567973/pexels-photo-567973.jpeg?w=940&h=650&auto=compress&cs=tinysrgb"/></figure>
<figure class="shadow"><img src="https://images.pexels.com/photos/776653/pexels-photo-776653.jpeg?w=940&h=650&auto=compress&cs=tinysrgb"/></figure>
<figure class="shadow"><img src="https://images.pexels.com/photos/54630/japanese-cherry-trees-flowers-spring-japanese-flowering-cherry-54630.jpeg?w=940&h=650&auto=compress&cs=tinysrgb"/></figure>
<figure class="shadow"><img src="https://images.pexels.com/photos/131046/pexels-photo-131046.jpeg?w=940&h=650&auto=compress&cs=tinysrgb"/></figure>
<figure class="shadow"><img src="https://images.pexels.com/photos/302515/pexels-photo-302515.jpeg?w=940&h=650&auto=compress&cs=tinysrgb"/></figure>
<figure class="shadow"><img src="https://images.pexels.com/photos/301682/pexels-photo-301682.jpeg?w=940&h=650&auto=compress&cs=tinysrgb"/></figure>
<figure class="shadow"><img src="https://images.pexels.com/photos/933054/pexels-photo-933054.jpeg?w=940&h=650&auto=compress&cs=tinysrgb"/></figure>
</div>
</div> -->
<figure class="shadow"><img src='http://trips.elusien.co.uk/2017c-New_Zealand/images/Day10a+Gannet_Colony.JPG' ></figure>
<figure class="shadow"><img src='http://trips.elusien.co.uk/2017c-New_Zealand/images/Day10b+Gannets.JPG' ></figure>
<figure class="shadow"><img src='http://trips.elusien.co.uk/2017c-New_Zealand/images/Day10d+Bethells_Beach_Cave.JPG'></figure>
<figure class="shadow"><img src='http://trips.elusien.co.uk/2017c-New_Zealand/images/Day10e+Karakare_Falls.JPG' ></figure>
</section>
</body>
</html>