Every component you add to a website has a field called Custom Class. You can use this to do a range of inbuild animations and spacing.
Underlying Mition is Bootstrap 4, a powerful browser based layout system. So all the Bootstrap 4 features are available to you.
Use these classes to get an animation on scroll (as the user scrolls down and the component comes into view these animations are triggered). We use animate-hide to make the initial state of the control hidden, its optional but it makes the effect nicer.
These classes are triggered interally, so you cannot just add these styles within a WYSIWYG, they are only valid for components and the Custom Class property.
This is an example of animate-hide animate-zoom
This control does a animate__animated animate__fadeInDownBig
There are numerous animations available from this plugin that is available (this is already available to every page).
These animations run on page load not on scroll, but there are many of them.
Similar to Bootstrap classes, try these animation classes.
The component will shake
The component will make a grand entrance
animate__animated animate__bounce animate__delay-2s
The component will bounce, but will wait for 2 seconds first
You can add delay with a mix of any animation.
This can create a nice effect on a hero to slide items in.
You can add these styles within a WYSIWYG and they will also work.
In the Description field of a Hero 2.0 if you put two .. (two full stops) this triggers auto typing code.
If you add an image manually in the HTML Text (via source code) you can also use the class img-fluid floating to make that image hover.
<img class='img-fluid floating' src='https://mition.blob.core.windows.net/mition/PRODUCTION/media/2021-Logo.png' />
You can use the class img-fluid floating on any image anywhere and it will hover.
Bootstrap uses a 12 column grid system, so when you create a component size-6 it will take up half of the screen. But sometimes you want to centre it, or not have something to the left and make it sit right. So for flexibility, use these CSS Bootstrap classes in the Custom Class field of any component to change the alignment, padding, margin and other effects.
ml-auto margin left auto
mr-auto margin right auto use this with the above one to centre a box in the screen
offset-md-2 this will offset the container so you don’t have to put a filler box before it, as we discussed. This one is a size 2 – replace 2 with any value between 1 and 11.
See here for more details on bootstrap classes.
(note: you can use more than one custom class on the component).
Warning: Increasing Margin will make the component bigger than its size, so it might not fit in the 12 grid as you would like. E.g. you have 3 x size 4 components which all sit on one row, if you add m-4 to one of those, all of a sudden one of those components is too big and it pushes the control across 2 rows.
You can adjust the spacing for different devices too, Bootstrap uses S, XS, M and L to differentiate the device and what to do. This Bootstrap spacing documentation is very useful to understand how it works
You can move the webpage components to a different location within the page using the drag and drop option. First, move the pointer to the object, then press and hold down the button on the mouse to grab the object. Drag it to the desired location by moving the pointer. Finally drop the object by releasing the button.Read More
powered by mition