Skip to main content

Class-position

Utilities for controlling how a background image behaves when scrolling.

Use the v-bg-post-* utilities to control the position of an element. You can use
the feat: custom feature if you want the background position to suit your needs.

Table list positions​

Class nameProperties
v-bg-center background-position: center;
v-bg-top background-position: top;
v-bg-left background-position: left;
v-bg-rightbackground-position: right;
v-bg-bottombackground-position: bottom;
v-bg--1background-position: -20%;
v-bg--2background-position: -40%;
v-bg--3background-position: -60%;
v-bg--4background-position: -80%;
v-bg--fullbackground-position: -100%;
v-bg-1background-position: 20%;
v-bg-2background-position: 40%;
v-bg-3background-position: 60%;
v-bg-4background-position: 80%;
v-bg-fullbackground-position: 100%;

The table above presents several types of positions with different variants.

Example Code​

index.html
<div>
<span class="v-bg-center">
bg-position
</span>
<span class="v-bg-top">
bg-position
</span>
<span class="v-bg-left">
bg-position
</span>
<span class="v-bg-right">
bg-position
</span>
<span class="v-bg-bottom">
bg-position
</span>
</div>