Framer X » 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 Framer X book - Monthly or Framer X book - Yearly.