All Projects → yuanguandong → smart-background

yuanguandong / smart-background

Licence: MIT license
Automatically generate the background of the symbol picture, so you no longer have to worry about the background 自动生成符号背景,让你不再为背景头疼

Programming Languages

typescript
32286 projects
Less
1899 projects
javascript
184084 projects - #8 most used programming language
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to smart-background

iterative-grabcut
This algorithm uses a rectangle made by the user to identify the foreground item. Then, the user can edit to add or remove objects to the foreground. Then, it removes the background and makes it transparent.
Stars: ✭ 35 (-52.7%)
Mutual labels:  background-image, background
madao admin manage
🎉 VUE前后端分离管理系统,基于RBAC的后台管理。
Stars: ✭ 38 (-48.65%)
Mutual labels:  background
postcss-image-set-polyfill
PostCSS plugin for polyfilling image-set CSS function
Stars: ✭ 45 (-39.19%)
Mutual labels:  background-image
starback.js
Create a beautiful star falling background with starback.js
Stars: ✭ 337 (+355.41%)
Mutual labels:  background
sshbg
Change terminal background when SSH'ing (on specific terminals)
Stars: ✭ 45 (-39.19%)
Mutual labels:  background
backgroundImagePlus
Cycle random background images in IntelliJ
Stars: ✭ 99 (+33.78%)
Mutual labels:  background
Backgroundable Android
Collection of stock apps and mechanisms, which might affect background tasks and scheduled alarms.
Stars: ✭ 247 (+233.78%)
Mutual labels:  background
cordova-plugin-background-upload
Cordova plugin for background upload
Stars: ✭ 47 (-36.49%)
Mutual labels:  background
BLE
No description or website provided.
Stars: ✭ 25 (-66.22%)
Mutual labels:  background
time
The simplest but configurable online clock
Stars: ✭ 77 (+4.05%)
Mutual labels:  background
vitrina-legacy
A companion app for Muzei that fetches images from Reddit
Stars: ✭ 23 (-68.92%)
Mutual labels:  background
android-multibackground
This library can easily apply round corner、stroke、shadow and different state effects to background drawable.
Stars: ✭ 18 (-75.68%)
Mutual labels:  background
ShadowDrawable
为View 和 ViewGroup 添加阴影效果--Android,Add shadow for single view or viewgroup layout.
Stars: ✭ 22 (-70.27%)
Mutual labels:  background
canvas-image-cover-position
Calculating image position for scaling it on the canvas.
Stars: ✭ 38 (-48.65%)
Mutual labels:  background-image
react-scrolling-color-background
background with color transitioning as you scroll, declarative and easy to setup
Stars: ✭ 53 (-28.38%)
Mutual labels:  background
ECardFlow
🍭A custom ViewPager for multiple card flow system. && A layout which provide beautiful background effects for ViewPager.
Stars: ✭ 47 (-36.49%)
Mutual labels:  background-image
Interactive-Image-Particles
A Simple Javascript library that use image data to create a small interactive particles network.
Stars: ✭ 24 (-67.57%)
Mutual labels:  background
vue-responsive-video-background-player
Play your own videos in background responsively in different resolutions.
Stars: ✭ 212 (+186.49%)
Mutual labels:  background
komorebi
A beautiful and customizable wallpaper manager for Linux
Stars: ✭ 231 (+212.16%)
Mutual labels:  background
intuiter
Global productivity app for anyone who use Windows
Stars: ✭ 24 (-67.57%)
Mutual labels:  background

Smart Background

npm version npm version npm version npm version npm version npm version

An React Component Can Automatically Generate The Background

一个快速生成元素背景的react组件

repository-open-graph-template副本

Live demo

https://yuanguandong.github.io/smart-background/

Install

npm i smart-background -S

How to use

import React from 'react';
import Background from 'smart-background';
import { FaLaugh } from 'react-icons/fa';

export default () => {
  return (
    <div style={styles.container}>
      <Background underlayColor="#f00" animation={{ type: 'bottom', speed: 5 }}>
        <div style={styles.content}>
          <FaLaugh style={styles.icon} />
          <h1 style={styles.text}>JUST DO IT</h1>
        </div>
      </Background>
    </div>
  );
};

const styles = {
  container: { width: '100%', position: 'relative', height: 350 },
  content: {
    width: '100%',
    height: '100%',
    display: 'flex',
    justifyContent: 'center',
    alignItems: 'center',
    flexDirection: 'column',
  },
  icon: { color: '#fff', fontSize: 120 },
  text: { color: '#fff', fontSize: 36, fontWeight: 'bold' },
};

Props

property description type defaultValue required
symbols 元素/字符/符号集合 (string | ReactNode | Element)[ ] ['●'] false
random 符号是否随机生成位置和大小 { fontSizeRange: number[] } | undefined false
underlayColor 底衬颜色 string false
underlayImage 底衬图片 string false
symbolsStyle 符号样式 Object {color: '#000', opacity: '0.3'} false
rotate 符号旋转角度 number 0 false
symbolSize 符号大小 number 90 false
gap 符号间距 number 10 false
animation 滚动动画 {type: 'left' | 'right' | 'top' | 'bottom'; speed: number;} false
exact 精确模式 boolean false false
childrenWrapClassName 子组件容器类名 string false
childrenWrapStyle 子组件容器类名 React.CSSProperties false
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].