Giter Site home page Giter Site logo

oxo4work-portfolio's Introduction

貓奴檢定 🐈 - 介紹網頁 🎮Link

介紹貓奴檢定的視覺設計及看不到的程式小巧思,將本來置於 Behance 等平台的平面內容,使用 Rive 及 CSS 加上一個有互動性的登陸頁,並監聽滾動事件,以優化使用者體驗。

專案特點 ✨ #React #SCSS

因為貓奴檢定為日式風格,加入同樣日系、近年設計趨勢 ── Bento design , Hover 上不同區塊,會有不同的效果。


🐈 在網頁動畫製作平台 Rive ,將貓奴檢定中的貓貓加以設計,利用滑鼠監聽事件加上互動效果

const { rive, setCanvasRef, setContainerRef } = useRive({
  src: "./images/cat-tracking.riv",
  stateMachines: "State Machine 1",
  layout: new Layout({
    fit: Fit.Contain,
    alignment: Alignment.Center,
  }),
  autoplay: true,
});

const numX = useStateMachineInput(rive, "State Machine 1", "mouseX", 50);
const numY = useStateMachineInput(rive, "State Machine 1", "mouseY", 50);

🐈 UIUX 連結處採浮動效果,讓物件稍微超出區塊格線,增加立體感


🐈 自我介紹連結處採透視效果


🐈 在空白區放上貓貓 emoji 作為小彩蛋


🐈 貓貓 emoji 動畫則是今日運勢小互動


🐈 程式連結處則變換程式碼長度,表示專案開發中,不停修正改進的過程


🐈 內容頁的角落圖示,暗示可採用方向鍵滾動,優化使用者瀏覽體驗

const handleKeyboard = (e) => {
  if (e.code === "ArrowDown") {
    e.preventDefault();
    if (scrollPosition === 12) return;
    setScrollPosition((scrollPosition) => scrollPosition + 1);
  } else if (e.code === "ArrowUp") {
    e.preventDefault();
    if (scrollPosition === 0) return;
    setScrollPosition((scrollPosition) => scrollPosition - 1);
  }
};
const handleScrollbar = () => {
  const viweport = document.body.getBoundingClientRect().height / 13;
  const scrollbarValue = Math.round(window.scrollY / viweport);
  setScrollPosition(scrollbarValue);
};
useEffect(() => {
  window.scrollTo({
    top: scrollPosition * window.innerHeight,
    behavior: "smooth",
  });
}, [scrollPosition]);

🐈 考量內容為求職需要,在手機版呈現裝置建議圖示

oxo4work-portfolio's People

Contributors

voxovb avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.