aerugo / bbu

Babel Between Us
BSD 3-Clause "New" or "Revised" License
2 stars 1 forks source link

Fade in post when entering from a fragment #3

Open aerugo opened 2 years ago

aerugo commented 2 years ago

We want to introduce a feature where navigating to a post through a fragment has the following effect:

https://user-images.githubusercontent.com/7785081/148274384-54452901-cd1a-4b77-9730-17ebe3897270.mov

aerugo commented 2 years ago

This feature, as well as #2, has a known edge case:

To find the fragment in the post div you will need to search the post for the fragment substring. However, in cases where the fragment is from a place where there are newlines in the post, the annotation software that created the fragments deleted the newlines from the fragment text.

Example: https://explore.babelbetween.us/fragment/6737

You will need to somehow account for this when matching strings.