Framer Docs
Introduction
Get Started
Align
bottom( )
center( )
left( )
right( )
top( )
Animation
Curves
Properties
start( )
stop( )
reverse()
BackgroundLayer
Canvas
backgroundColor
image
width
height
size
frame
Color
Models
lighten
darken
saturate
desaturate
grayscale
gray
mix
random
isColor
isColorObject
isColorString
toHexString
toRgbString
toHslString
Defaults
Device
deviceType
fullScreen
deviceScale
setDeviceScale
contentScale
setContentScale()
orientation
setOrientation()
orientationName
rotateLeft()
rotateRight()
Draggable
enabled
horizontal
vertical
speedX
speedY
constraints
constraintsOffset
isBeyondConstraints
overdrag
overdragScale
momentum
momentumOptions
bounce
bounceOptions
velocity
direction
angle
updatePosition()
directionLock
directionLockThreshold
pixelAlign
isDragging
isAnimating
isMoving
offset
layerStartPoint
cursorStartPoint
layerCursorOffset
propagateEvents
Events
Tap
ForceTap
LongPress
Swipe
Pan
Pinch
Scale
Rotate
Touch
Click
Mouse
Animation
State
Drag
Scroll
EdgeSwipe
Change
Gesture Properties
touchEvent()
wrap()
Layer
id
name
x
y
z
width
height
minX
midX
maxX
minY
midY
maxY
point
size
frame
props
center()
centerX()
centerY()
pixelAlign()
screenFrame
contentFrame()
centerFrame()
backgroundColor
color
image
visible
opacity
clip
ignoreEvents
originX
originY
originZ
perspective
flat
backfaceVisible
rotation
rotationX
rotationY
rotationZ
scale
scaleX
scaleY
parent
children
childrenWithName()
siblings
siblingsWithName()
descendants
ancestors
addChild()
removeChild()
index
placeBefore()
placeBehind()
bringToFront()
sendToBack()
html
style
computedStyle()
classList
destroy()
copy()
copySingle()
blur
brightness
saturate
hueRotate
contrast
invert
grayscale
sepia
shadowX
shadowY
shadowBlur
shadowSpread
shadowColor
borderRadius
borderColor
borderWidth
animate()
animateStop()
animations()
isAnimating
on()
off()
MIDIComponent
min
max
control
channel
source
onValueChange
Compatibility
Modules
Example: Interactions
Example: NPM
PageComponent
originX
originY
velocityThreshold
animationOptions
currentPage
closestPage
nextPage()
previousPage
snapToPage()
snapToNextPage()
snapToPreviousPage()
addPage()
horizontalPageIndex()
verticalPageIndex()
Pinchable
enabled
threshold
centerOrigin
scale
scaleIncrements
minScale
maxScale
scaleFactor
rotate
rotateIncrements
rotateFactor
Print
Screen
backgroundColor
width
height
size
frame
perspective
perspectiveOriginX
perspectiveOriginY
ScrollComponent
content
contentInset
speedX
speedY
scroll
scrollHorizontal
scrollVertical
scrollX
scrollY
scrollPoint
scrollFrame
velocity
direction
angle
closestContentLayer()
closestContentLayerForScrollPoint()
scrollToPoint()
scrollToLayer()
scrollToClosestLayer()
mouseWheelEnabled
wrap()
updateContent()
copy()
SliderComponent
knob
knobSize
fill
min
max
value
pointForValue()
valueForPoint()
animateToValue()
States
add
remove()
switch()
switchInstant()
current
next()
animationOptions
Utilities
modulate()
cycle()
labelLayer()
round()
randomChoice()
randomColor()
randomImage()
randomNumber()
delay()
frameInset()
interval()
debounce()
insertCSS()
throttle()
isWebKit()
isChrome()
isSafari()
isTouch()
isDesktop()
isPhone()
isTablet()
isMobile()
VideoLayer
video
player
Powered by
GitBook
isPhone()
Utils.isPhone()
Returns whether this is a phone device.
译:
返回是否这是一个电话设备。
print Utils.isPhone() # Output true
results matching "
"
No results matching "
"