auto embedded component in an online code editor
2024-09-06 09:54:30
auto embedded component in an online code editor
how to auto open a component in the third parts online editor or IDE
codepen & prefill_data_id
Prefill Embeds
https://blog.codepen.io/documentation/prefill-embeds/
https://blog.codepen.io/documentation/prefill/
live demo
https://codepen.io/xgqfrms/pen/xxZpKZP
See the Pen Prefill Pen by xgqfrms
(@xgqfrms) on CodePen.
demos
antd skeleton
https://ant.design/components/skeleton-cn/
https://github.com/ant-design/ant-design/blob/master/.codesandbox/ci.json
https://github.com/ant-design/ant-design/blob/master/components/skeleton/Skeleton.tsx
quasar skeleton
https://quasar.dev/vue-components/skeleton
svg use
<svg class="half-circle" width="80px" height="80px">
<use xlink:href="#half-circle"></use>
</svg>
<svg id="half-circle" viewBox="0 0 106 57"><path d="M102 4c0 27.1-21.9 49-49 49S4 31.1 4 4"></path></svg>
svg:not(:root) {
overflow: hidden;
}
.author-avatar .half-circle {
position: absolute;
bottom: 0;
left: 0;
width: 80px;
height: 56px;
fill: none;
stroke: url(#orange-to-pink);
stroke-width: 8;
stroke-linecap: round;
pointer-events: none;
}
.link-shared-by svg {
fill: #ff8a00;
}
https://css-tricks.com/new-codepen-feature-prefill-embeds/
https://css-tricks.com/wp-content/themes/CSS-Tricks-17/images/squiggle.svg
noscript & srcset & lazy loaded
<div class="author-avatar">
<img
alt=""
src="https://secure.gravatar.com/avatar/8081b26e05bb4354f7d65ffc34cbbd67?s=350&d=retro&r=pg"
class="avatar avatar-350 photo jetpack-lazy-image jetpack-lazy-image--handled"
height="350"
width="350"
srcset="https://secure.gravatar.com/avatar/8081b26e05bb4354f7d65ffc34cbbd67?s=700&d=retro&r=pg 2x"
data-lazy-loaded="1" />
<noscript>
<img alt='' src='https://secure.gravatar.com/avatar/8081b26e05bb4354f7d65ffc34cbbd67?s=350&d=retro&r=pg' srcset='https://secure.gravatar.com/avatar/8081b26e05bb4354f7d65ffc34cbbd67?s=700&d=retro&r=pg 2x' class='avatar avatar-350 photo' height='350' width='350' />
</noscript>
<svg class="half-circle" width="80px" height="80px">
<use xlink:href="#half-circle"></use>
</svg>
</div>
refs
xgqfrms 2012-2020
www.cnblogs.com 发布文章使用:只允许注册用户才可以访问!
最新文章
- iOS 获取设备唯一标示符的方法
- 网页mp3播放代码
- 苹果App store 2015最新审核标准公布(2015.3)
- java 连接sql server2008配置
- React Native-目前最火的前端技术?
- MVC 4 插件化架构简单实现
- automaticallyAdjustsScrollViewInsets (iOS)
- 让SQL再快一点儿
- 【原创】大叔问题定位分享(13)HBase Region频繁下线
- android -------- RecyclerView的可(多个Item水平,垂直)滚动列表的实现
- firefox 屏蔽Backspace按键的后退功能
- flume 使用手册
- powerDesigner 把name项添加到注释(comment)
- (转)GCT之逻辑经验总结(拿来主义)
- 修复日志,阻止给日志多次添加handlers时候重复打印的问题
- 抓包工具 - HttpWatch(功能详细介绍)
- static关键字的内存分析
- Showing a tooltip
- linux 文件操作库函数
- Spring Cloud Summary
热门文章
- Docker逃逸
- 分布式缓存 — Docker
- Linux忽略大小写的查找技巧(转)
- sql如何查询数据库最后10条记录并正序输出
- 【Spring-Security】Re01 入门上手
- 设计模式(二)——Java简单工厂模式
- 一文入门Linux下gdb调试(二)
- 阿里新晋 CNCF TOC 委员张磊:“云原生”为什么对云计算生态充满吸引力?
- 【uva 534】Frogger(图论--最小瓶颈路 模版题)
- 【noi 2.6_9283】&;【poj 3088】Push Botton Lock(DP--排列组合 Stirling数)