-
-
Notifications
You must be signed in to change notification settings - Fork 250
feat: Added optional 3D tilt effect to cards #1917
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Running Code Quality on PRs by uploading data to Trunk will soon be removed. You can still run checks on your PRs using trunk-action - see the migration guide for more information. |
const isHovering = ref(false); | ||
const hoveringRomId = ref(); | ||
const openedMenu = ref(false); | ||
const openedMenuRomId = ref(); | ||
const storedEnable3DEffect = localStorage.getItem("settings.enable3DEffect"); | ||
const enable3DEffect = ref( | ||
isNull(storedEnable3DEffect) ? false : storedEnable3DEffect === "true", | ||
); | ||
let timeout: ReturnType<typeof setTimeout>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is duplicated like 5 times, we should probably (not in this PR) make this a utility
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually I wanted this to be merged because my plan is to create a pinia store for settings. That will avoid this being duplicated everywhere. Also the handlers can be extracted to a utility too.
Description
Added optional 3D tilt effect for cards when hover on them
Checklist
Please check all that apply.
Screenshots