1.0.11 • Published 4 years ago

react-bloating-grid v1.0.11

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

React Bloating Grid

Documentation and Examples

npmjs github

Example

How to contribute?

Install

npm i --save react-bloating-grid

Basic example

import React from "react";
import ReactDOM from "react-dom";
import BloatingGrid from "react-bloating-grid";

const children = n => {
  return new Array(n).fill().map((_, i) => <div key={i} className="element" />);
};

function App() {
  return <BloatingGrid gridColumns={6}>{children(6)}</BloatingGrid>;
}

ReactDOM.render(<App />, document.querySelector("#root"));
.element {
	transition: all 0.4s ease-out;
	background: rgb(255, 238, 252);
	background-size: cover;
	border-radius: 4px;
	transform: scale(1);
	width: 100%;
	padding-top: 100%;
}

.element:hover::after {
	opacity: 1;
}

.element::after {
	transition: all 0.2s ease-out;
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	text-align: center;
	border-radius: 2px;
	font-family: Arial, Helvetica, sans-serif;
	content: "Hello 🐒";
	color: rgb(205, 42, 172);
	opacity: 0;
	font-weight: 900;
	cursor: pointer;
	font-size: 10px;
}

Other Examples

Example

Documentation and examples

1.0.11

4 years ago

1.0.9

4 years ago

1.0.10

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