进度条 Div 样式

Progress-bar Div style

有一个进度条并且工作正常,但我在样式部分遇到了问题。正如您在图片上看到的那样,我希望右侧的进度与图片上的一样。我在 css 上不是那么好。如果哪位大侠能给我解释一下,我会很高兴的。

感谢您的努力:)

enter image description here

看看演示

HTML

<div class="progress" >
  <div style="width: 50%;"></div>
</div>

CSS

.progress { background: #e3e887; text-align: left; font-size: 0; }
.progress > div { display: inline-block; height: 88px; position: relative; background: linear-gradient(to right, #e21e2c 0%, #cac511 100%); overflow: hidden; }
.progress > div:before { position: absolute; top: 0; right: 0; content: ''; width: 0; height: 0; border-top: 44px solid #e3e887; border-left: 44px solid transparent; }
.progress > div:after { position: absolute; bottom: 0; right: 0; content: ''; width: 0; height: 0; border-bottom: 44px solid #e3e887; border-left: 44px solid transparent; }

Demo