1.1.22 • Published 4 years ago

react-absoluted v1.1.22

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

React-Absoluted

react-absolute is a react wrapper that works like a combination of position absolute and fixed

Elements with position absolute:

  • They generate scroll when the size is greater than the viewport
  • They are fixed in the defined position with respect to the parent

Elements with position fixed:

  • They do not generate scroll when the size is greater than the viewport
  • They are fixed in the defined position with respect to the viewport

This wrapper is fixed in the defined position with respect to the parent and does not generate a scroll when the size is greater than the viewport.

Getting started

npm install react-absolute

Import Absoluted

import Absoluted from 'react-absoluted';
// ...

Wrap the elementos

<Absoluted>
  <img src="/images/bubble1.svg" alt="Image with size greater than the viewport"/>
</Absoluted>

Example

To understand the example look at the scroll

Image with position absolute.

Bubble 1

Image with position fixed Bubble 2

Image wrapped with Absoluted "Bubble 3"

1.1.22

4 years ago

1.1.21

4 years ago

1.1.20

4 years ago

1.1.19

4 years ago

1.1.18

4 years ago

1.1.17

4 years ago

1.1.16

4 years ago

1.1.15

4 years ago

1.1.14

4 years ago

1.1.13

4 years ago

1.1.12

4 years ago

1.1.11

4 years ago

1.1.10

4 years ago

1.1.9

4 years ago

1.1.7

4 years ago

1.1.6

4 years ago

1.1.5

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago