Gentleface › Games & sports › basketball
basketball icon
basketballBasketball: basketball, hoops. Drawn on the 16 px grid. Free SVG, PNG and code, MIT licensed.
Animated basketball-bounce · line-round
The ball squashes and jumps off the top edge, falls back and flattens on the floor with its seams flattening too. It bounces twice more, lower each time, turning in the air.
Native SVG animation, with no CSS or script. It loops by itself. Inline it to take the text color: in an <img> it draws black. To play it once on hover or click, run 0.2 s to 2.4 s. Examples and helper.
Code line-round
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M2.904 2.904C3.538 2.269 4.273 1.787 5.107 1.456C5.876 1.152 6.673 1 7.5 1C8.327 1 9.124 1.152 9.893 1.456C10.727 1.787 11.462 2.269 12.096 2.904C12.731 3.538 13.213 4.273 13.544 5.107C13.848 5.876 14 6.673 14 7.5C14 8.327 13.848 9.124 13.544 9.893C13.213 10.727 12.731 11.462 12.096 12.096C11.462 12.731 10.727 13.213 9.893 13.544C9.124 13.848 8.327 14 7.5 14C6.673 14 5.876 13.848 5.107 13.544C4.273 13.213 3.538 12.731 2.904 12.096C2.269 11.462 1.787 10.727 1.456 9.893C1.152 9.124 1 8.327 1 7.5C1 6.673 1.152 5.876 1.456 5.107C1.787 4.273 2.269 3.538 2.904 2.904ZM10.588 5.147C10.854 4.648 11.191 4.21 11.6 3.833C11.532 3.758 11.462 3.683 11.389 3.611C10.852 3.074 10.231 2.666 9.525 2.386C9.031 2.191 8.522 2.069 8 2.022L8 7L10.024 7C10.087 6.351 10.275 5.734 10.588 5.147ZM5.475 2.386C4.769 2.666 4.148 3.074 3.611 3.611C3.538 3.683 3.468 3.758 3.4 3.833C3.809 4.21 4.146 4.648 4.412 5.147C4.725 5.734 4.913 6.351 4.976 7L7 7L7 2.022C6.478 2.069 5.969 2.191 5.475 2.386ZM3.529 5.618C3.334 5.251 3.091 4.926 2.8 4.642C2.64 4.905 2.502 5.183 2.386 5.475C2.191 5.969 2.069 6.478 2.022 7L3.97 7C3.91 6.517 3.764 6.057 3.529 5.618ZM12.614 5.475C12.498 5.183 12.36 4.905 12.2 4.642C11.909 4.926 11.666 5.251 11.471 5.618C11.236 6.057 11.09 6.517 11.03 7L12.978 7C12.931 6.478 12.809 5.969 12.614 5.475ZM2.386 9.525C2.502 9.817 2.64 10.095 2.8 10.358C3.091 10.074 3.334 9.749 3.529 9.382C3.764 8.943 3.91 8.483 3.97 8L2.022 8C2.069 8.522 2.191 9.031 2.386 9.525ZM4.412 9.853C4.146 10.352 3.809 10.79 3.4 11.167C3.468 11.242 3.538 11.317 3.611 11.389C4.148 11.926 4.769 12.334 5.475 12.614C5.969 12.809 6.478 12.931 7 12.978L7 8L4.976 8C4.913 8.649 4.725 9.266 4.412 9.853ZM8 12.978C8.522 12.931 9.031 12.809 9.525 12.614C10.231 12.334 10.852 11.926 11.389 11.389C11.462 11.317 11.532 11.242 11.6 11.167C11.191 10.79 10.854 10.352 10.588 9.853C10.275 9.266 10.087 8.649 10.024 8L8 8L8 12.978ZM11.471 9.382C11.666 9.749 11.909 10.074 12.2 10.358C12.36 10.095 12.498 9.817 12.614 9.525C12.809 9.031 12.931 8.522 12.978 8L11.03 8C11.09 8.483 11.236 8.943 11.471 9.382Z"/></svg>
// Gentleface "basketball" (line-round), MIT. https://gentleface.com/icons/basketball
import type { SVGProps } from 'react';
export function BasketballIcon(props: SVGProps<SVGSVGElement>) {
return (
<svg xmlns="http://www.w3.org/2000/svg" width={16} height={16} viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" {...props}>
<path d="M2.904 2.904C3.538 2.269 4.273 1.787 5.107 1.456C5.876 1.152 6.673 1 7.5 1C8.327 1 9.124 1.152 9.893 1.456C10.727 1.787 11.462 2.269 12.096 2.904C12.731 3.538 13.213 4.273 13.544 5.107C13.848 5.876 14 6.673 14 7.5C14 8.327 13.848 9.124 13.544 9.893C13.213 10.727 12.731 11.462 12.096 12.096C11.462 12.731 10.727 13.213 9.893 13.544C9.124 13.848 8.327 14 7.5 14C6.673 14 5.876 13.848 5.107 13.544C4.273 13.213 3.538 12.731 2.904 12.096C2.269 11.462 1.787 10.727 1.456 9.893C1.152 9.124 1 8.327 1 7.5C1 6.673 1.152 5.876 1.456 5.107C1.787 4.273 2.269 3.538 2.904 2.904ZM10.588 5.147C10.854 4.648 11.191 4.21 11.6 3.833C11.532 3.758 11.462 3.683 11.389 3.611C10.852 3.074 10.231 2.666 9.525 2.386C9.031 2.191 8.522 2.069 8 2.022L8 7L10.024 7C10.087 6.351 10.275 5.734 10.588 5.147ZM5.475 2.386C4.769 2.666 4.148 3.074 3.611 3.611C3.538 3.683 3.468 3.758 3.4 3.833C3.809 4.21 4.146 4.648 4.412 5.147C4.725 5.734 4.913 6.351 4.976 7L7 7L7 2.022C6.478 2.069 5.969 2.191 5.475 2.386ZM3.529 5.618C3.334 5.251 3.091 4.926 2.8 4.642C2.64 4.905 2.502 5.183 2.386 5.475C2.191 5.969 2.069 6.478 2.022 7L3.97 7C3.91 6.517 3.764 6.057 3.529 5.618ZM12.614 5.475C12.498 5.183 12.36 4.905 12.2 4.642C11.909 4.926 11.666 5.251 11.471 5.618C11.236 6.057 11.09 6.517 11.03 7L12.978 7C12.931 6.478 12.809 5.969 12.614 5.475ZM2.386 9.525C2.502 9.817 2.64 10.095 2.8 10.358C3.091 10.074 3.334 9.749 3.529 9.382C3.764 8.943 3.91 8.483 3.97 8L2.022 8C2.069 8.522 2.191 9.031 2.386 9.525ZM4.412 9.853C4.146 10.352 3.809 10.79 3.4 11.167C3.468 11.242 3.538 11.317 3.611 11.389C4.148 11.926 4.769 12.334 5.475 12.614C5.969 12.809 6.478 12.931 7 12.978L7 8L4.976 8C4.913 8.649 4.725 9.266 4.412 9.853ZM8 12.978C8.522 12.931 9.031 12.809 9.525 12.614C10.231 12.334 10.852 11.926 11.389 11.389C11.462 11.317 11.532 11.242 11.6 11.167C11.191 10.79 10.854 10.352 10.588 9.853C10.275 9.266 10.087 8.649 10.024 8L8 8L8 12.978ZM11.471 9.382C11.666 9.749 11.909 10.074 12.2 10.358C12.36 10.095 12.498 9.817 12.614 9.525C12.809 9.031 12.931 8.522 12.978 8L11.03 8C11.09 8.483 11.236 8.943 11.471 9.382Z" />
</svg>
);
}Vue: see /icons/basketball.md
Svelte: see /icons/basketball.md
HTML img: see /icons/basketball.md
CSS: see /icons/basketball.md
Data URL: see /icons/basketball.md
Sprite: see /icons/basketball.md
SwiftUI: see /icons/basketball.md
Compose: see /icons/basketball.md
Android XML: see /icons/basketball.md
Flutter: see /icons/basketball.md
Each icon is drawn on the 16 px grid, and most also on the 20 and 24 px grids (at 24 in three weights: light 1 px, regular 1.5 px, bold 2 px). Show the drawing made for your size, or an exact multiple of it, on whole pixels: 16 for 16 and 32 px, 20 for 20 and 40, 24 for 24 and 48. A size in between or a fractional position blurs it. The code on each icon page is the 16 px drawing, an SVG with fill="currentColor"; the icon page's downloads follow its Grid switch, and npm has the 20 and 24 px drawings too. The snippets are decorative (aria-hidden). For an icon that carries meaning on its own, such as an icon-only button, label the button, or give the SVG role="img" and an aria-label. More in how to use.
With npm: import { BasketballIcon } from '@gentleface/react'; (setup).
Meaning
- Use it for
- basketball, hoops
- Tags
- basketball, ball, sports, game, hoop, court, nba, team-sport
- Category
- Games & sports
- Component name
BasketballIcon- History
- added
- released in 0.1.0
- changed in 0.2.0
- 20 px drawn, 24 px drawn
- Since
- version 0.1.0
Family 1
More games & sports icons
alien american-football american-football-off badminton barbell barbell-off baseball baseball-bat baseball-helmet basketball-court beach-ball bench-press billiards bomb boules bow-arrow · all games & sports icons
For agents
Metadata: /icons/basketball.json · Markdown: /icons/basketball.md · SVG: https://gentleface.com/svg/{style}/16/basketball.svg · PNG: https://gentleface.com/png/{style}/{16|32|48}/basketball.png