一些好用的SVG代码——放大器

Author Avatar
Rui 02月 07,2020
  • 在其它设备中阅读本文章

放大器一般用于制作隐藏式音频触发按钮

重点代码

style="width: 40%;height: 0px;box-sizing: border-box;float: left;margin-top: -250;transform: scale(3);"

代码完整案例

<section label="2020WannaSleep@JZCreative, All Rights Reserved" style="text-align: center;margin-right: 0%;margin-left: 0%;box-sizing: border-box;" powered-by="2020WannaSleep@JZCreative">
	<section label="2020WannaSleep@JZCreative, All Rights Reserved" style="max-width: 100%;vertical-align: middle;display: inline-block;line-height: 0;box-sizing: border-box;">
		<img class="__bg_gif " data-backh="162" data-backw="578" data-cropselx1="0" data-cropselx2="578" data-cropsely1="0" data-cropsely2="141" data-ratio="0.28056426332288403" data-type="gif" data-w="638" data-src="https://mmbiz.qpic.cn/sz_mmbiz_gif/QzqjTlKfNpSeTslqduibdQAibZAL4wmUXVUxcrx0wb8QrVzu64LY9hCP6LLPzWvGWicooGBibbuy1EnLoyLP1AJuMQ/640?wx_fmt=gif" style="vertical-align: middle; box-sizing: border-box; visibility: visible !important; width: 100% !important; height: auto !important;" _width="100%" src="https://mmbiz.qpic.cn/sz_mmbiz_gif/QzqjTlKfNpSeTslqduibdQAibZAL4wmUXVUxcrx0wb8QrVzu64LY9hCP6LLPzWvGWicooGBibbuy1EnLoyLP1AJuMQ/640?wx_fmt=gif&amp;tp=webp&amp;wxfrom=5&amp;wx_lazy=1&amp;wx_co=1" data-order="0" crossorigin="anonymous" data-fail="0"></section>			
	<section label="2020WannaSleep@JZCreative, All Rights Reserved" style="width:100%;opacity:0;margin-top: -200px;"><section label="2020WannaSleep@JZCreative, All Rights Reserved" style="width: 40%;height: 0px;box-sizing: border-box;float: left;margin-top: -250;">
		<section label="2020WannaSleep@JZCreative, All Rights Reserved" style="transform: scale(3);">
<section><mpvoice class="js_editor_audio audio_iframe js_uneditable" src="/cgi-bin/readtemplate?t=tmpl/audio_tmpl&amp;name=%E8%BF%AA%E5%A5%A5%E4%BA%8C%E9%9B%B6%E4%BA%8C%E9%9B%B6%E5%A4%8F%E5%AD%A3%E7%94%B7%E8%A3%85%E7%B3%BB%E5%88%97&amp;play_length=08:57" isaac2="1" low_size="1047.28" source_size="1024" high_size="4201.36" name="迪奥二零二零夏季男装系列" play_length="537000" voice_encode_fileid="MzIzOTQ2MDM0N18yMjQ3NDg1NzI4" data-pluginname="insertaudio"></mpvoice><span class="js_audio_frame db pages_reset audio_area">          <span aria-labelledby="语音" id="voice_main_MzIzOTQ2MDM0N18yMjQ3NDg1NzI4_0" class="appmsg_card_context appmsg_card_active db audio_card">       <strong id="voice_title_MzIzOTQ2MDM0N18yMjQ3NDg1NzI4_0" class="audio_card_title" aria-describedby="语音标题" role="link">迪奥二零二零夏季男装系列</strong>               <span id="voice_author_MzIzOTQ2MDM0N18yMjQ3NDg1NzI4_0" class="audio_card_desc">来自DIOR迪奥风尚服务号</span>              <span class="weui-flex">         <span class="weui-flex__item">           <span class="audio_card_opr">             <span id="voice_seekRange_MzIzOTQ2MDM0N18yMjQ3NDg1NzI4_0" class="audio_card_progress_wrp">               <span class="audio_card_progress">                 <span id="voice_progress_MzIzOTQ2MDM0N18yMjQ3NDg1NzI4_0" style="width:0%" class="audio_card_progress_inner"></span>                 <span id="voice_buffer_MzIzOTQ2MDM0N18yMjQ3NDg1NzI4_0" class="audio_card_progress_buffer" style="width:0%;"></span>                 <span id="voice_loading_MzIzOTQ2MDM0N18yMjQ3NDg1NzI4_0" class="audio_card_progress_loading" style="display:none;"></span>               </span>               <span id="voice_playdot_MzIzOTQ2MDM0N18yMjQ3NDg1NzI4_0" class="audio_card_progress_handle" style="display:none;left:0%;"></span>             </span>             <span class="audio_card_tips" aria-labelledby="时长">               <em id="voice_playtime_MzIzOTQ2MDM0N18yMjQ3NDg1NzI4_0" class="audio_card_length_current" aria-hidden="true">00:00</em>               <em id="voice_duration_MzIzOTQ2MDM0N18yMjQ3NDg1NzI4_0" class="audio_card_length_total">08:57</em>             </span>           </span>         </span>         <span id="voice_play_MzIzOTQ2MDM0N18yMjQ3NDg1NzI4_0" aria-labelledby="播放开关" class="audio_card_switch"><em class="weui-audio-btn" role="button"></em></span>       </span>     </span> </span></section></section></section></section><section label="2020WannaSleep@JZCreative, All Rights Reserved" style="width:100%;opacity:0;margin-top: -200px;"><section label="2020WannaSleep@JZCreative, All Rights Reserved" style="width: 40%;height: 0px;box-sizing: border-box;float: left;margin-top: -250;"><section label="2020WannaSleep@JZCreative, All Rights Reserved" style="transform: scale(3);"><section><mpvoice class="js_editor_audio audio_iframe js_uneditable" src="/cgi-bin/readtemplate?t=tmpl/audio_tmpl&amp;name=%E8%BF%AA%E5%A5%A5%E4%BA%8C%E9%9B%B6%E4%BA%8C%E9%9B%B6%E5%A4%8F%E5%AD%A3%E7%94%B7%E8%A3%85%E7%B3%BB%E5%88%97&amp;play_length=08:57" isaac2="1" low_size="1047.28" source_size="1024" high_size="4201.36" name="迪奥二零二零夏季男装系列" play_length="537000" voice_encode_fileid="MzIzOTQ2MDM0N18yMjQ3NDg1NzI4" data-pluginname="insertaudio"></mpvoice><span class="js_audio_frame db pages_reset audio_area">          <span aria-labelledby="语音" id="voice_main_MzIzOTQ2MDM0N18yMjQ3NDg1NzI4_0" class="appmsg_card_context appmsg_card_active db audio_card">       <strong id="voice_title_MzIzOTQ2MDM0N18yMjQ3NDg1NzI4_0" class="audio_card_title" aria-describedby="语音标题" role="link">迪奥二零二零夏季男装系列</strong>               <span id="voice_author_MzIzOTQ2MDM0N18yMjQ3NDg1NzI4_0" class="audio_card_desc">来自DIOR迪奥风尚服务号</span>              <span class="weui-flex">         <span class="weui-flex__item">           <span class="audio_card_opr">             <span id="voice_seekRange_MzIzOTQ2MDM0N18yMjQ3NDg1NzI4_0" class="audio_card_progress_wrp">               <span class="audio_card_progress">                 <span id="voice_progress_MzIzOTQ2MDM0N18yMjQ3NDg1NzI4_0" style="width:0%" class="audio_card_progress_inner"></span>                 <span id="voice_buffer_MzIzOTQ2MDM0N18yMjQ3NDg1NzI4_0" class="audio_card_progress_buffer" style="width:0%;"></span>                 <span id="voice_loading_MzIzOTQ2MDM0N18yMjQ3NDg1NzI4_0" class="audio_card_progress_loading" style="display:none;"></span>               </span>               <span id="voice_playdot_MzIzOTQ2MDM0N18yMjQ3NDg1NzI4_0" class="audio_card_progress_handle" style="display:none;left:0%;"></span>             </span>             <span class="audio_card_tips" aria-labelledby="时长">               <em id="voice_playtime_MzIzOTQ2MDM0N18yMjQ3NDg1NzI4_0" class="audio_card_length_current" aria-hidden="true">00:00</em>               <em id="voice_duration_MzIzOTQ2MDM0N18yMjQ3NDg1NzI4_0" class="audio_card_length_total">08:57</em>             </span>           </span>         </span>         <span id="voice_play_MzIzOTQ2MDM0N18yMjQ3NDg1NzI4_0" aria-labelledby="播放开关" class="audio_card_switch"><em class="weui-audio-btn" role="button"></em></span>       </span>     </span> </span></section></section></section></section></section>

案例Dior回到未来