Changing effects in sliding video cover

After getting the image code perfect, I see a noticeable difference between these 2 codes

gradient code:

After clicking on the gradient code, it magnifies the image.

Question: Would I be able to give the gradient a set width and height of 1920 x 1080?

Is this something that is possible to do?

Compared to the perfect image code:

.panel-right::before {
  content: "";
  position: absolute;
  height: 100%;
  width: 200%;
  top: 0;
  left: 0;
  background-image: url("");
  background-size: auto;
  background-repeat: no-repeat;
  background-position: 0 0;

Don’t increase the page height until the animation has finished and then the problem goes away.

1 Like

I don’t know how that is done.

Is there a specific name for what that is called?

I like that idea.

Which would mean, when it is half open, it will be empty like this, right?

Would I be able to put something in there, and then, it would disappear after it is open all the way?

I have a question about this.

Does transition time mean actual time?

I’m confused about how this works.

For example:

.panel-right {
 transition: all ease 30s;

How come the walls are open in less than 30 seconds?

Would I be using a different transition property to do that?


What would be the css property to use to set a time for how long it will take for the 2 sides to be fully open?

I would need to change these back to %.

.curtain.slide .panel-left {
  transform: translateX(-100vw);

.curtain.slide .panel-right {
  transform: translateX(100vw);

That’s the time it takes for the transition to complete it’s journey.

The element is being moved outside the viewport to hide it so some of the transition will be happening outside the viewport.

Assuming the element is perfectly centred then 50vw should hide it. Just test and see. You can’t use percentage here because that won’t refer to the viewport.

1 Like

Would adding a fade out transition to the left and right panel, along with the play image, is that something that could be done?

Also, does a fade out transition mean the element gets removed from the page?

Yes just transition opacity on them.

No the element is still there but invisible. You can set pointer-events:none on the element after you have clicked it (use the .slide class) and then the element cannot be clicked again. In the example I gave in your other thread I also set width and height to zero after the transition had finished so I believe you have all the tools to do what you need now.