1.1.22 • Published 1 year ago

react-absoluted v1.1.22

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year 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

1 year ago

1.1.21

1 year ago

1.1.20

1 year ago

1.1.19

1 year ago

1.1.18

1 year ago

1.1.17

1 year ago

1.1.16

1 year ago

1.1.15

1 year ago

1.1.14

1 year ago

1.1.13

1 year ago

1.1.12

1 year ago

1.1.11

1 year ago

1.1.10

1 year ago

1.1.9

1 year ago

1.1.7

1 year ago

1.1.6

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago