Framer » Smart Components » iOS Segmented Control » 4. Selection Indicator

4. Selection Indicator

Next up: the bar that swiftly slides to the selected segment. I named it the selection indicator. An AnimationControls object We need an animation that we can trigger every time the index state changes, so we’ll use an useAnimation() hook. export function SegmentedControl_04(props) { let initialIndex if (props.setCurrentBy === true) { initialIndex = props.currentIndex } […]
To access this page, you must purchase The Framer book.