Skip to content

mytac/react-eyeball

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spy

make an eyeball and its perspective will be changed through mousemoving

go to the react version

How to use

options

// these options is required
const obj={
        // 250 is the maxium size
        // please do not set bigger value,it will case some mistakes about its style.
        eyeSize:250, 
        element:'#test-inner', // class name or id of the wrapper element
        containerEl:'#test', // class name or id of container element
    }
// these options is selected
color:Array(3) //  e.g. ['#f5f0d8', 'rgb(24, 198, 184)', 'black']
dopeMove:boolean

example

basic

dopeMove:true

dopeMove

About

make an eyeball and its perspective will be changed through mousemoving

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published