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

  • Home
  • SEARCH
  • 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 7053343
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T03:29:36+00:00 2026-05-28T03:29:36+00:00

I am attempting to create an arrow that looks like this using SVG elements:

  • 0

I am attempting to create an arrow that looks like this using SVG elements:

enter image description here

This is my attempt:

enter image description here

As you can see the gradient gets applied to both the rect & the polygon in my SVG. Is there a way to replicate the gradient effect in the top image in my SVG?

Maybe theres a CSS way to do this? Maybe I HAVE to use a path or single polygon element to create the arrow instead of a rect & polygon?

<svg width="424" height="100">
    <defs>
        <radialGradient id="grad1" cx="50%" cy="50%" r="50%" fx="50%" fy="50%">
          <stop offset="0%" style="stop-color:rgb(255,255,255); stop-opacity:0" />
          <stop offset="100%" style="stop-color:rgb(13,20,93);  stop-opacity:1" />
        </radialGradient>
    </defs>

    <rect x="0" y="25" rx="0" ry="0" width="212" height="50" fill="url(#grad1)"> </rect>
    <polygon points="212,0 212,100 424,50" fill="url(#grad1)"></polygon>
</svg>
  • 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-28T03:29:37+00:00Added an answer on May 28, 2026 at 3:29 am

    I used two gradients to attempt to recreate what you were trying to do. You can adjust the center of the gradient to align with the edges of the shapes:

    <svg width="424" height="100">
        <defs>
            <radialGradient id="grad1" cx="100%" cy="50%" r="100%" fx="100%" fy="50%">
              <stop offset="0%" style="stop-color:rgb(255,255,255); stop-opacity:0" />
              <stop offset="100%" style="stop-color:rgb(13,20,93);  stop-opacity:1" />
            </radialGradient>
            <radialGradient id="grad2" cx="0%" cy="50%" r="50%" fx="0%" fy="50%">
              <stop offset="0%" style="stop-color:rgb(255,255,255); stop-opacity:0" />
              <stop offset="100%" style="stop-color:rgb(13,20,93);  stop-opacity:1" />
            </radialGradient>
        </defs>
        <rect x="0" y="25" rx="0" ry="0" width="212" height="50" fill="url(#grad1)"> </rect>
        <polygon points="212,0 212,100 424,50" fill="url(#grad2)"></polygon>
    </svg>
    

    Demo

    Is there something wrong with a single polygon though?

    <svg width="424" height="100">
        <defs>
            <radialGradient id="grad1" cx="50%" cy="50%" r="50%" fx="50%" fy="50%">
              <stop offset="0%" style="stop-color:rgb(255,255,255); stop-opacity:0" />
              <stop offset="100%" style="stop-color:rgb(13,20,93);  stop-opacity:1" />
            </radialGradient>
        </defs>
    
        <polygon points="212,0 212,25 0,25 0,75, 212,75 212,100 424,50" fill="url(#grad1)"></polygon>
    </svg>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am attempting to create a simple application using Eclipse GEF that displays a
I'm attempting to create a Parcelable class in Android so that I can pass
I am attempting to create a SVG Pie Graph that is 277 degrees. I
I am attempting to create a page where a user can see what their
When attempting to create a form with UITextFields, it appears that cellForRowAtIndexPath: gets called
I'm attempting to create a custom calendar control that inherits from ASP.Net's built in
I am attempting to create a REST API in PHP and I'd like to
I am attempting to create a web page that will allow a user to
I'm attempting to create a 100% width toolbar. This toolbar needs to have a
I am attempting to create a wcf service that accepts any input (Action=*) and

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.