mirror of
https://github.com/formbricks/formbricks.git
synced 2026-01-07 06:12:31 -06:00
feat: Improve animation
This commit is contained in:
@@ -221,7 +221,7 @@ export default function Navigation({
|
||||
return (
|
||||
<>
|
||||
{product && (
|
||||
<nav className="top-0 z-10 w-full border-b border-slate-200 bg-white">
|
||||
<nav className="top-0 w-full border-b border-slate-200 bg-white">
|
||||
{environment?.type === "development" && (
|
||||
<div className="h-6 w-full bg-[#A33700] p-0.5 text-center text-sm text-white">
|
||||
You're in development mode. Use it to test surveys, actions and attributes.
|
||||
|
||||
@@ -30,13 +30,17 @@ let surveyNameTemp;
|
||||
const previewParentContainerVariant: Variants = {
|
||||
expanded: {
|
||||
position: "fixed",
|
||||
height: "100vh",
|
||||
width: "100vw",
|
||||
height: "100%",
|
||||
width: "100%",
|
||||
backgroundColor: "rgba(0, 0, 0, 0.4)",
|
||||
backdropFilter: "blur(15px)",
|
||||
left: 0,
|
||||
top: 0,
|
||||
zIndex: 1040,
|
||||
transition: {
|
||||
ease: "easeIn",
|
||||
duration: 0.001,
|
||||
},
|
||||
},
|
||||
shrink: {
|
||||
backgroundColor: "transparent",
|
||||
@@ -46,15 +50,24 @@ const previewParentContainerVariant: Variants = {
|
||||
const previewScreenVariants: Variants = {
|
||||
expanded: {
|
||||
position: "absolute",
|
||||
width: "90%",
|
||||
height: "90%",
|
||||
width: ["0%", "20%", "45%", "90%"],
|
||||
height: ["0%", "20%", "45%", "90%"],
|
||||
left: "5%",
|
||||
top: "5%",
|
||||
transform: "translate(0%, 0%)",
|
||||
boxShadow: "0px 4px 5px 4px rgba(169, 169, 169, 0.25)",
|
||||
transition: {
|
||||
ease: "easeInOut",
|
||||
duration: 0.3, // Adjust the duration to your preference
|
||||
},
|
||||
},
|
||||
preview: {
|
||||
shrink: {
|
||||
position: "relative",
|
||||
width: ["0%", "100%"],
|
||||
height: ["0%", "100%"],
|
||||
transition: {
|
||||
ease: "easeIn",
|
||||
duration: 0.3, // Adjust the duration to your preference
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user