lit / lit/lit.dev

Animate home page example on hover over code too

Open
#370 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
142
Forks
230
PR merge metrics
No merged PRs in 30d

Description

On the lit.dev homepage, the highlights only activate when you hover over the right-hand-side labels. It would be nice for the same effect to happen when you hover over the code lines on the left-hand-side too. And to make it more obvious that there's something to interact with, we should probably add something visually to those code lines too, e.g. a little pulsing dot.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the lit.dev homepage implementation and locate the highlight behavior currently triggered by hovering the right-hand labels. Make the corresponding code lines trigger the same highlights and give them a visible interactive cue, such as a pulsing dot; done means both hover targets behave consistently and the affordance is apparent.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
design, frontend, web-dev
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.