4.2.0-maleks.rc.2 • Published 1 month ago

@yola/ws-component-background-container v4.2.0-maleks.rc.2

Weekly downloads
-
License
-
Repository
-
Last release
1 month ago

ws-background-container

Custom element that allows you emulate css background-size: cover; property and configure it's display and positioning.

Usage

Set src attribute with any url and it will display it as css background cover property

<section style="position: relative;">
  <ws-background-container src="./test.png" content-position="50% 50%" content-scale="1.5">
  </ws-background-container>
</section>

Attributes

TitleExampleDescription
position"40% 70%"Percentage coordinates. Indicates the point on the picture or video that will aim to be placed in the center of the container.
scale"1.2"Scales the media inside container. It's recommended to use values from 1 to 3.
src"http://image.com"Image source

Requirements

In order for the component to work correctly it should be inside element with position set to relative and also you need to add these styles to your page:

ws-background-container {
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}
4.2.0-rc.jm.4

1 month ago

4.2.0-rc.jm.3

1 month ago

4.2.0-rc.jm.2

1 month ago

4.2.0-rc.jm.1

1 month ago

4.2.0-rc.jm.0

1 month ago

4.0.3-rc.ch.1

9 months ago

4.0.3-rc.ch.0

9 months ago

4.0.4-rc.ch.0

7 months ago

4.0.4-rc.ch.3

6 months ago

4.0.4-rc.ch.1

7 months ago

4.0.4-rc.ch.2

6 months ago

4.1.0

6 months ago

4.0.0-rc.16

2 years ago

4.0.0-rc.17

2 years ago

4.0.2-rc.jm.0

1 year ago

4.0.2-rc.jm.1

1 year ago

4.0.1

2 years ago

4.0.2

1 year ago

4.0.0-rc.15

2 years ago

4.0.0-rc.14

2 years ago

4.0.0-rc.13

2 years ago

4.0.0-rc.12

2 years ago

4.0.0-rc.11

2 years ago

4.0.0-rc.8

2 years ago

4.0.0-rc.7

2 years ago

4.0.0-rc.5

2 years ago

4.0.0-rc.4

2 years ago

4.0.0-rc.3

3 years ago

4.0.0-rc.2

3 years ago

4.0.0-rc.1

3 years ago

4.0.0-rc.0

3 years ago

3.1.3-rc.ash.0

3 years ago

3.1.2

3 years ago

3.1.1-rc.art.4

3 years ago

3.1.1-rc.art.3

3 years ago

3.1.1-rc.art.2

3 years ago

3.1.1-rc.art.1

3 years ago

3.2.0-raffa.rc.3

3 years ago

3.2.0-raffa.rc.1

3 years ago

3.1.1

3 years ago

3.1.1-rc.ch.1

3 years ago

3.1.0

3 years ago

3.1.0-rc.0

3 years ago

3.0.0

3 years ago

2.5.0-rc.dz.3

3 years ago

2.5.0-rc.dz.2

3 years ago

2.5.0-rc.dz.1

3 years ago

2.4.1

3 years ago

2.3.1-rc.dz.2

3 years ago

2.3.1-dz.1

3 years ago

3.0.0-rc.ch.3

3 years ago

3.0.0-rc.ch.2

3 years ago

3.0.0-rc.ch.1

3 years ago

2.3.0

4 years ago

2.3.0-rc.dz.5

4 years ago

2.3.0-rc.dz.4

4 years ago

2.3.0-rc.dz.3

4 years ago

2.3.0-rc.dz.2

4 years ago

2.3.0-rc.dz.1

4 years ago

2.2.2

4 years ago

2.2.1

4 years ago

2.2.0

4 years ago

2.1.1

4 years ago

2.1.1-rc.jm.1

4 years ago

2.1.0

4 years ago

2.1.0-rc.jm.2

4 years ago

2.1.0-rc.jm.1

4 years ago

2.0.3-rc.alex.1

4 years ago

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.3.0

4 years ago

1.2.4

4 years ago

1.2.4-rc.1

4 years ago

1.2.3

4 years ago

1.2.2-ol-rc.0

4 years ago

1.2.2

5 years ago

1.2.1-ol-rc.0

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.0

5 years ago

1.0.0-ol-rc.1

5 years ago

1.0.0-ol-rc.0

5 years ago

1.0.0

5 years ago

0.0.1-ol-rc.6

5 years ago

0.0.1-ol-rc.5

5 years ago

0.0.1-ol-rc.4

5 years ago