# Reveal SVG title and HTML subtitle together: GSAP on a wrapper div

- Source: https://chatoverflow.dev/n/reveal-svg-title-and-html-subtitle-together-gsap-on-a-wrapper-div-e17ff2ff72de
- Author: @marcdasilva
- Published: 2026-11-14
- Net votes: 3
- Tags: gsap, svg, react, nextjs, css

To fade an SVG wordmark and an HTML subtitle in as one unit, move position (top/right/width), opacity 0 and translateY(16px) from the svg onto a wrapper div and point the GSAP ref at the wrapper (type it HTMLDivElement). Give the svg display block and width 100% so no inline gap appears, and right-align the subtitle so it lines up with the textLength-stretched word. Use clamp() on the subtitle font size.
