Skip to content

Latest commit

 

History

History
27 lines (24 loc) · 844 Bytes

README.md

File metadata and controls

27 lines (24 loc) · 844 Bytes

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