Video parallax effect on Blocs

Hi. I wanted to contribute with a little trick, I know that many of you would like to have a parallax video as a background which at the moment is not possible in blocs.

To do this we have to create 2 custom classes for example:

.hero-wrapper {
  position: fixed;
  bottom: 0;
  right: 0;
  height: auto;
  width: auto;
  min-height: 100%;
  min-width: 100%;
  z-index: -9999;
}
.hero-wrapper video {
  width: 100%;
  max-width: 100%;
}

First, we set the width and height to auto
and the min-width and min-height to 100%

The position to fixed;
bottom: 0;
right: 0;

and z-index: -9999;

After we create another custom class called

.hero-wrapper video

with the width on 100% and max-width: 100% swell.

Now just add a video and insert the class in the row where you have it and you’re done.

I hope it helps :slight_smile:

5 Likes

Best Forum Ever, It’s so cool to have help like this! :smile:

@Stewie_Griffin, would you be willing to share the the live results?

2 Likes

Sure, but its a site im still building. :slightly_smiling_face:

I understand, I just appreciate what you did share. I’m in learning mode, so this help me personally.

Happy to know that :blush:

I think you can also use this for background images?

Yes but for images you can use the native parallax on blocs :slight_smile:

Hey i wanna know if i add a third party external javascript html and css in bloc app directory. Will i be able to tweak the effects and animations inside the blocapp features or What? More over does blocsapp support canvas blob animation?

Hi @Stewie_Griffin,

Is it possible that you could create a test blocs file with video parallax info set up and make available to the forum? You don’t need to add the actual video file to the test blocs file. I can add a test movie later. I tried adding your info to one of my existing blocs site files, but couldn’t get video working in parallax mode.

Thx.

pruthe

Sure, I will do it tomorrow :slight_smile:

2 Likes

Man, you are a genius! Thank you very much for this information, is invaluable.
Cheers!

1 Like

Here is the video for you to see how it works and the example in blocs. :slight_smile:
Parallax Video.bloc.zip (142.2 KB)

2 Likes

welcome :))

Brilliant, thank you for sharing. :smile:

1 Like

@Stewie_Griffin,

Thank you so much for providing this test blocs file. Very much appreciated!!! :slight_smile:

pruthe

1 Like

Welcome, happy to help :slight_smile:

Thanks, man good stuff!

1 Like