All Projects → lindelof → power-mode-input

lindelof / power-mode-input

Licence: other
PowerModeInput can make your text input box more compelling

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to power-mode-input

Proton
Javascript particle animation library
Stars: ✭ 1,958 (+2779.41%)
Mutual labels:  particles, particle
ParticleLib
Multiversion spigot library supporting all particles and their data (1.8-1.18.2)
Stars: ✭ 156 (+129.41%)
Mutual labels:  particles, particle
phaser-particle-editor-plugin
This plugin creates particles based on JSON data generated by Phaser Particle Editor
Stars: ✭ 28 (-58.82%)
Mutual labels:  particles, particle
Three.proton
three.proton is a magical 3d particle engine using three.js library. It is based on the Proton engine library.
Stars: ✭ 327 (+380.88%)
Mutual labels:  particles, particle
Corpuscles.jl
Julia package for particle physics
Stars: ✭ 25 (-63.24%)
Mutual labels:  particles, particle
angular-code-input
Code (number/chars/otp/password) input component for angular 7, 8, 9, 10, 11, 12+ projects including Ionic 4, 5 +
Stars: ✭ 112 (+64.71%)
Mutual labels:  input
R8051
8051 soft CPU core. 700-lines statements for 111 instructions . Fully synthesizable Verilog-2001 core.
Stars: ✭ 70 (+2.94%)
Mutual labels:  tiny
hookahjs
Add empty/dirty/touched CSS hooks to input and textarea elements automatically (1056 bytes)
Stars: ✭ 21 (-69.12%)
Mutual labels:  input
react-simple-range
🔉 React slider component for inputting a numeric value within a range.
Stars: ✭ 20 (-70.59%)
Mutual labels:  input
spark-sdk-ios
DEPRECATED Particle iOS Cloud SDK. Use -->
Stars: ✭ 52 (-23.53%)
Mutual labels:  particle
react-native-calculator
React Native Calculator and Calculator Input Component
Stars: ✭ 23 (-66.18%)
Mutual labels:  input
read input
A simple CLI tool that asks for user input until the data inputted is valid.
Stars: ✭ 13 (-80.88%)
Mutual labels:  input
dynamic-input-fields-reactjs
Example of the dynamic input fields in ReactJS
Stars: ✭ 31 (-54.41%)
Mutual labels:  input
rawtx
A Golang module that helps you answer questions about raw Bitcoin transactions, their inputs, outputs and scripts.
Stars: ✭ 12 (-82.35%)
Mutual labels:  input
file-upload-with-preview
🖼 Simple file-upload utility that shows a preview of the uploaded image. Written in TypeScript. No dependencies. Works well with or without a framework.
Stars: ✭ 406 (+497.06%)
Mutual labels:  input
spark-particle-uv
Demo of how to sample the camera texture and map it to particles.
Stars: ✭ 25 (-63.24%)
Mutual labels:  particles
rich input
Rich input box, implement @Someone and subject with color highlighting
Stars: ✭ 58 (-14.71%)
Mutual labels:  input
placeholder-animated
Input com placeholder animado, cujo funcionamento é semelhante ao login do Google
Stars: ✭ 19 (-72.06%)
Mutual labels:  input
eseed-window
A minimal cross-platform C++17 window management library for rendering (deprecated)
Stars: ✭ 18 (-73.53%)
Mutual labels:  input
teaful
🍵 Tiny, easy and powerful React state management
Stars: ✭ 638 (+838.24%)
Mutual labels:  tiny

PowerModeInput

NPM JavaScript Style Guide

PowerModeInput can make your text input box more compelling

This project can make your input box lively. One day I saw a vscode plugin called Power Mode, so I wanted to write a similar javascript library. This project uses proton.js and it is also great.

By the way recommend a great react particle animation background component https://github.com/lindelof/particles-bg

Online demo

Install

npm install --save power-mode-input

Usage

import PowerModeInput from "power-mode-input";

const input = document.getElementById("obinput");
PowerModeInput.make(input);

// close PowerModeInput
PowerModeInput.close(input);

// destroy PowerModeInput
PowerModeInput.destroy();

// another usage
PowerModeInput.make(".phone", {
  height: 5,
  tha: [0, 360],
  g: 0.5,
  num: 5,
  radius: 6,
  circle: true,
  alpha: [0.75, 0.1],
  color: "random"
});

If you are in react, you can use it like this

componentDidMount(){
  PowerModeInput.make(this.inputRef.current);
}

You can use it like this in vue.js

mounted() {
  PowerModeInput.make(this.$refs.inputRef);
}

Of course this can be done in angular

const inputElement = this.elementRef.nativeElement.querySelector('input');
PowerModeInput.make(inputElement);

Parameter Description

PowerModeInput.make(input, {
  height: 5,
  tha: [0, 360],
  g: 0.5,
  num: 5,
  ... // Parameter
});
key describe type example
g Whether to add gravity number 1
num The number of particles emitted each time number 3
radius The radius of every particle number 10
alpha The alpha of every particle number .1
tha The Particle emitter angle array [0, 360]
v The Particle emitter Particle velocity number 0.5
life The life of every particle number 1.2
color Particle color array or string #ffcccc
random Random force number 1.2
y Particle emitter height number 2
height Particle emitter height Ibid number 2

Explanation

For some special types of input boxes, the cursor may not be positioned correctly. I am also looking for a solution to this problem. If you know, please let me know. See here for specific reasons

Contribution

I very much hope that you can work with me to modify the code. I also have a lot of fun ideas. Maybe you can join me to implement it.

License

https://opensource.org/licenses/MIT

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].