INNER CODE UNIT · TypeScript

newPopsUp

Flaque/quirk · src/animations/index.ts:26

export const newPopsUp = ({ fullHeight, hiddenHeight, popUpScale }) =>
  posed.View({
    peak: {
      height:
        Platform.OS === "ios" ? fullHeight * popUpScale : fullHeight * 0.6,
      transition: { type: "spring", duration: 200 },
    },
    peakNoBounce: {
      height:
        Platform.OS === "ios" ? fullHeight * popUpScale : fullHeight * 0.6,
      transition: { duration: 0, ease: "easeOut" },
    },
    full: {
      height: fullHeight,
      transition: { type: "spring", stiffness: 150 },
    },
    hiddenWiggle: {
      height: hiddenHeight * 1,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…