0.2.3 • Published 3 years ago

auto-size-background v0.2.3

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Auto Size Background

Auto Size Background can set background image auto fit screen

Example

Click Me Open

Stretch the webpage to see the effect

Installation

npm i --save auto-size-background

Import the components you need, example:

import React from 'react'
import AutoSizeBackground from 'auto-size-background'
import img from 'img-link-here'

export default props => {
  return (
    <AutoSizeBackground src={img}>
      {props.children}
    </AutoSizeBackground>
  )
}

API

参数说明类型默认值
src图片地址string-
dtl图片伸缩方向,现在支持垂直、水平vertical | horizontalhorizontal

Run from local

$ npm install
$ npm start

LICENSE

MIT

0.2.1

3 years ago

0.2.0

3 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.1.9

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago