0.0.14 • Published 4 years ago

visual-focus v0.0.14

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

visual focus

Help you keep everyone's focus where you want to explain on browser gif

Check it out

The easiest way to try it is along devtools

gif

var script = document.createElement('script')
script.src =
  'https://cdn.jsdelivr.net/npm/visual-focus@0.0.14/dist/v-focus.umd.js'
document.documentElement.append(script)

and then

var v = new vfocus()

and now you can try to press the control button

Install

npm install visual-focus

Usage

import vfocus from 'visual-focus'

const v = new vfocus(options)

Options

Size: Number (default: 85)

radius of focus

FocusColor: String (default: 'rgba(0, 0, 0, 0)')

color of focus

BackgroundColor: String (default: 'rgba(0, 0, 0, 0.85)')

color of background

ContinuousMode: Boolean (default: true)

if true, toggle focus-mode when press the control button each time, and if false, only trigger focus-mode on keep the control button pressed down

0.0.14

4 years ago

0.0.13

4 years ago

0.0.11

4 years ago

0.0.12

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.5

4 years ago

0.0.6

4 years ago

0.0.4

4 years ago