Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6673791
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T03:40:10+00:00 2026-05-26T03:40:10+00:00

I am working on a design where I would like to position header elements

  • 0

I am working on a design where I would like to position header elements along a curve. Example:

enter image description here

Typically I would do this manually using CSS, but in this case there can be a dynamic number of items.

I’m curious if anyone knows of a way to place a dynamic number of items along a curve? I’m guessing it would require a way of specifying an equation that defines what the curve should be (notice that the curve above peaks right of center…) and then place items spaced evenly on that.

Has anyone done this before? Any recommendations on where to start?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T03:40:12+00:00Added an answer on May 26, 2026 at 3:40 am

    A simple way to specify a curve is using a Bezier cubic.

    enter image description here

    function bez3(x0, y0, x1, y1, x2, y2, x3, y3, t)
    {
        var x01 = x0 + t*(x1 - x0);
        var y01 = y0 + t*(y1 - y0);
        var x12 = x1 + t*(x2 - x1);
        var y12 = y1 + t*(y2 - y1);
        var x23 = x2 + t*(x3 - x2);
        var y23 = y2 + t*(y3 - y2);
    
        var x012 = x01 + t*(x12 - x01);
        var y012 = y01 + t*(y12 - y01);
        var x123 = x12 + t*(x23 - x12);
        var y123 = y12 + t*(y23 - y12);
    
        return {x: x012 + t*(x123 - x012),
                y: y012 + t*(y123 - y012)};
    }
    

    The curve starts at t=0, (x0, y0) tangent toward (x1, y1) and arrives at t=1, (x3, y3) coming tangent from (x2, y2).

    For t=0 the function returns the starting point (x0, y0), for t=1 the function returns the ending point (x3, y3). Values of t between 0 and 1 are points along the curve (they’re smoothly but not equally spaced however). You can think to t as a “time” parameter of a point moving along the curve.

    Following this link is possible to see an interactive version implemented in javascript/canvas (the example uses letters A, B, C and D instead of 0, 1, 2 and 3 to mark the different points).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

To assist with a responsive design I'm working on I would like to redirect
I'm working on a responsive design, and would like some of my content in
I'm working on a database design for an e-commerce web application. For this question
i am not sure if my design have flaw but would like to know
I am working with an artist to make her personal website. She would like
I have a design problem which I would like some input on. Here are
I'm working on a Java library and would like to remove some functions from
I am new to front end design and would like to know what are
I'm working on some Silverlight controls and I would like to explicitly handle the
I am currently using TeeChart Lite (the free version of teechart). I would like

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.