Advertisement
doitliketyler

CSS Arrow Clipping

Jan 21st, 2016
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. .tweet {
  2. // Container
  3. background: url('img/stripes-light.png') repeat center center;
  4. border-radius: 3px;
  5. margin-bottom: 50px;
  6. position: relative;
  7. // Arrow
  8. &:after {
  9. background: url('img/stripes-light.png') repeat center center;
  10. border: solid transparent;
  11. border-color: rgba(40, 213, 46, 0);
  12. border-width: 30px;
  13. bottom: 100%;
  14. clip-path: polygon(50% 50%, 0% 100%, 100% 100%); // Clip
  15. -webkit-clip-path: polygon(50% 50%, 0% 100%, 100% 100%); // Clip
  16. content: " ";
  17. height: 0;
  18. left: 50%;
  19. margin-left: -30px;
  20. position: absolute;
  21. width: 0;
  22. }
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement