Skip to content

mimick a light switch style button #17

@ajonno

Description

@ajonno

hey there, came across your component, thanks for creating it!

before i dive into some testing of the api etc i thought I'd post this as you will have an immediate idea whether this is possible. we've got the following button mockup. when the user presses it, we want it to animate to an "on" switch state where the button looks like its been physically pressed inwards. to get the effect we're after it looks like the button itself, would be 2 Views (the light green View on top of the dark green view which would be positioned with 'absolute' & zIndex). that's just one approach tho, perhaps a different way is fine too..

if the user taps the button again, the it would return back to the "off" state (as per this example image)

2017-06-10_21-42-04

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions