XenForo Changing the avatar's shape

</clown>

Loyal Member
Screenshot_19.png
in extra.less
CSS:
.avatar {
  border-radius: 4px;
  vertical-align: top;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  -webkit-clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
Screenshot_20.png
in extra.less:
CSS:
.avatar {
  border-radius: 4px;
  vertical-align: top;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  -webkit-clip-path: polygon(50% 0, 100% 38%, 80% 100%, 20% 100%, 0 38%);
  clip-path: polygon(50% 0, 100% 38%, 80% 100%, 20% 100%, 0 38%);
}
Screenshot_21.png
in extra.less:
CSS:
.avatar {
  border-radius: 4px;
  vertical-align: top;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  -webkit-clip-path: polygon(50% 0, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%);
  clip-path: polygon(50% 0, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%);
}
Screenshot_22.png

in extra.less:
CSS:
.avatar {
  border-radius: 4px;
  vertical-align: top;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  -webkit-clip-path: polygon(0 50%, 15% 15%, 50% 0, 85% 15%, 100% 50%, 85% 85%, 50% 100%, 15% 85%);
  clip-path: polygon(0 50%, 15% 15%, 50% 0, 85% 15%, 100% 50%, 85% 85%, 50% 100%, 15% 85%);
}
 

Attachments

  • Screenshot_21.png
    Screenshot_21.png
    24 KB · Views: 40
  • Tags
    آموزش تغییر آواتار آواتار چند ضلعی تغییر آواتار
  • Back
    Top Bottom