限时优惠活动
亲爱的苦力吧用户,我们为了回馈新老用户一直以来的鼎力支持,即日起(2025-02-06至2025-03-06)凡是购买苦力吧VIP/充值K币的新老用户,都直接可获得买一送一的优惠馈赠。例如:购买一个月的VIP会员可直接获得两个月的VIP会员;充值100K币可直接获得200K币,以此类推!有任何疑问可联系在线客服,感谢各位用户对苦力吧素材的信任与厚爱,我们将一如既往的给大家上新更多优质的素材源码,祝大家开工大吉、工作顺利、心想事成。

9种不同的CSS聊天消息语音气泡特效代码

所属分类: 网页特效-其它&杂项    2023-12-16 11:36:22

9种不同的CSS聊天消息语音气泡特效代码 ie兼容6
 查看演示  登录后下载 温馨提示
登录会员即可享受免费下载
 我要建站

9种不同的CSS聊天消息语音气泡特效代码(共2个文件)

    • index.html

使用方法

  • code
  • source
  1. .cd__main{
  2. background: linear-gradient(to right, #36d1dc, #5b86e5) !important;
  3. }
  4. /* General CSS Setup */
  5. body{
  6. background-color: lightblue;
  7. font-family: "Ubuntu-Italic", "Lucida Sans", helvetica, sans;
  8. }
  9. /* container */
  10. .container {
  11. padding: 5% 5%;
  12. }
  13. /* CSS talk bubble */
  14. .talk-bubble {
  15. margin: 40px;
  16. display: inline-block;
  17. position: relative;
  18. width: 200px;
  19. height: auto;
  20. background-color: lightyellow;
  21. }
  22. .border{
  23. border: 8px solid #666;
  24. }
  25. .round{
  26. border-radius: 30px;
  27. -webkit-border-radius: 30px;
  28. -moz-border-radius: 30px;
  29. }
  30. /* Right triangle placed top left flush. */
  31. .tri-right.border.left-top:before {
  32. content: ' ';
  33. position: absolute;
  34. width: 0;
  35. height: 0;
  36. left: -40px;
  37. right: auto;
  38. top: -8px;
  39. bottom: auto;
  40. border: 32px solid;
  41. border-color: #666 transparent transparent transparent;
  42. }
  43. .tri-right.left-top:after{
  44. content: ' ';
  45. position: absolute;
  46. width: 0;
  47. height: 0;
  48. left: -20px;
  49. right: auto;
  50. top: 0px;
  51. bottom: auto;
  52. border: 22px solid;
  53. border-color: lightyellow transparent transparent transparent;
  54. }
  55. /* Right triangle, left side slightly down */
  56. .tri-right.border.left-in:before {
  57. content: ' ';
  58. position: absolute;
  59. width: 0;
  60. height: 0;
  61. left: -40px;
  62. right: auto;
  63. top: 30px;
  64. bottom: auto;
  65. border: 20px solid;
  66. border-color: #666 #666 transparent transparent;
  67. }
  68. .tri-right.left-in:after{
  69. content: ' ';
  70. position: absolute;
  71. width: 0;
  72. height: 0;
  73. left: -20px;
  74. right: auto;
  75. top: 38px;
  76. bottom: auto;
  77. border: 12px solid;
  78. border-color: lightyellow lightyellow transparent transparent;
  79. }
  80. /*Right triangle, placed bottom left side slightly in*/
  81. .tri-right.border.btm-left:before {
  82. content: ' ';
  83. position: absolute;
  84. width: 0;
  85. height: 0;
  86. left: -8px;
  87. right: auto;
  88. top: auto;
  89. bottom: -40px;
  90. border: 32px solid;
  91. border-color: transparent transparent transparent #666;
  92. }
  93. .tri-right.btm-left:after{
  94. content: ' ';
  95. position: absolute;
  96. width: 0;
  97. height: 0;
  98. left: 0px;
  99. right: auto;
  100. top: auto;
  101. bottom: -20px;
  102. border: 22px solid;
  103. border-color: transparent transparent transparent lightyellow;
  104. }
  105. /*Right triangle, placed bottom left side slightly in*/
  106. .tri-right.border.btm-left-in:before {
  107. content: ' ';
  108. position: absolute;
  109. width: 0;
  110. height: 0;
  111. left: 30px;
  112. right: auto;
  113. top: auto;
  114. bottom: -40px;
  115. border: 20px solid;
  116. border-color: #666 transparent transparent #666;
  117. }
  118. .tri-right.btm-left-in:after{
  119. content: ' ';
  120. position: absolute;
  121. width: 0;
  122. height: 0;
  123. left: 38px;
  124. right: auto;
  125. top: auto;
  126. bottom: -20px;
  127. border: 12px solid;
  128. border-color: lightyellow transparent transparent lightyellow;
  129. }
  130. /*Right triangle, placed bottom right side slightly in*/
  131. .tri-right.border.btm-right-in:before {
  132. content: ' ';
  133. position: absolute;
  134. width: 0;
  135. height: 0;
  136. left: auto;
  137. right: 30px;
  138. bottom: -40px;
  139. border: 20px solid;
  140. border-color: #666 #666 transparent transparent;
  141. }
  142. .tri-right.btm-right-in:after{
  143. content: ' ';
  144. position: absolute;
  145. width: 0;
  146. height: 0;
  147. left: auto;
  148. right: 38px;
  149. bottom: -20px;
  150. border: 12px solid;
  151. border-color: lightyellow lightyellow transparent transparent;
  152. }
  153. /*
  154. left: -8px;
  155. right: auto;
  156. top: auto;
  157. bottom: -40px;
  158. border: 32px solid;
  159. border-color: transparent transparent transparent #666;
  160. left: 0px;
  161. right: auto;
  162. top: auto;
  163. bottom: -20px;
  164. border: 22px solid;
  165. border-color: transparent transparent transparent lightyellow;
  166. /*Right triangle, placed bottom right side slightly in*/
  167. .tri-right.border.btm-right:before {
  168. content: ' ';
  169. position: absolute;
  170. width: 0;
  171. height: 0;
  172. left: auto;
  173. right: -8px;
  174. bottom: -40px;
  175. border: 20px solid;
  176. border-color: #666 #666 transparent transparent;
  177. }
  178. .tri-right.btm-right:after{
  179. content: ' ';
  180. position: absolute;
  181. width: 0;
  182. height: 0;
  183. left: auto;
  184. right: 0px;
  185. bottom: -20px;
  186. border: 12px solid;
  187. border-color: lightyellow lightyellow transparent transparent;
  188. }
  189. /* Right triangle, right side slightly down*/
  190. .tri-right.border.right-in:before {
  191. content: ' ';
  192. position: absolute;
  193. width: 0;
  194. height: 0;
  195. left: auto;
  196. right: -40px;
  197. top: 30px;
  198. bottom: auto;
  199. border: 20px solid;
  200. border-color: #666 transparent transparent #666;
  201. }
  202. .tri-right.right-in:after{
  203. content: ' ';
  204. position: absolute;
  205. width: 0;
  206. height: 0;
  207. left: auto;
  208. right: -20px;
  209. top: 38px;
  210. bottom: auto;
  211. border: 12px solid;
  212. border-color: lightyellow transparent transparent lightyellow;
  213. }
  214. /* Right triangle placed top right flush. */
  215. .tri-right.border.right-top:before {
  216. content: ' ';
  217. position: absolute;
  218. width: 0;
  219. height: 0;
  220. left: auto;
  221. right: -40px;
  222. top: -8px;
  223. bottom: auto;
  224. border: 32px solid;
  225. border-color: #666 transparent transparent transparent;
  226. }
  227. .tri-right.right-top:after{
  228. content: ' ';
  229. position: absolute;
  230. width: 0;
  231. height: 0;
  232. left: auto;
  233. right: -20px;
  234. top: 0px;
  235. bottom: auto;
  236. border: 20px solid;
  237. border-color: lightyellow transparent transparent transparent;
  238. }
  239. /* talk bubble contents */
  240. .talktext{
  241. padding: 1em;
  242. text-align: left;
  243. line-height: 1.5em;
  244. }
  245. .talktext p{
  246. /* remove webkit p margins */
  247. -webkit-margin-before: 0em;
  248. -webkit-margin-after: 0em;
  249. }
.cd__main{
   background: linear-gradient(to right, #36d1dc, #5b86e5) !important;
}

/* General CSS Setup */
body{
  background-color: lightblue;
  font-family: "Ubuntu-Italic", "Lucida Sans", helvetica, sans;
}

/* container */
.container {
  padding: 5% 5%;
}

/* CSS talk bubble */
.talk-bubble {
    margin: 40px;
  display: inline-block;
  position: relative;
    width: 200px;
    height: auto;
    background-color: lightyellow;
}
.border{
  border: 8px solid #666;
}
.round{
  border-radius: 30px;
    -webkit-border-radius: 30px;
    -moz-border-radius: 30px;

}

/* Right triangle placed top left flush. */
.tri-right.border.left-top:before {
    content: ' ';
    position: absolute;
    width: 0;
    height: 0;
  left: -40px;
    right: auto;
  top: -8px;
    bottom: auto;
    border: 32px solid;
    border-color: #666 transparent transparent transparent;
}
.tri-right.left-top:after{
    content: ' ';
    position: absolute;
    width: 0;
    height: 0;
  left: -20px;
    right: auto;
  top: 0px;
    bottom: auto;
    border: 22px solid;
    border-color: lightyellow transparent transparent transparent;
}

/* Right triangle, left side slightly down */
.tri-right.border.left-in:before {
    content: ' ';
    position: absolute;
    width: 0;
    height: 0;
  left: -40px;
    right: auto;
  top: 30px;
    bottom: auto;
    border: 20px solid;
    border-color: #666 #666 transparent transparent;
}
.tri-right.left-in:after{
    content: ' ';
    position: absolute;
    width: 0;
    height: 0;
  left: -20px;
    right: auto;
  top: 38px;
    bottom: auto;
    border: 12px solid;
    border-color: lightyellow lightyellow transparent transparent;
}

/*Right triangle, placed bottom left side slightly in*/
.tri-right.border.btm-left:before {
    content: ' ';
    position: absolute;
    width: 0;
    height: 0;
    left: -8px;
  right: auto;
  top: auto;
    bottom: -40px;
    border: 32px solid;
    border-color: transparent transparent transparent #666;
}
.tri-right.btm-left:after{
    content: ' ';
    position: absolute;
    width: 0;
    height: 0;
    left: 0px;
  right: auto;
  top: auto;
    bottom: -20px;
    border: 22px solid;
    border-color: transparent transparent transparent lightyellow;
}

/*Right triangle, placed bottom left side slightly in*/
.tri-right.border.btm-left-in:before {
    content: ' ';
    position: absolute;
    width: 0;
    height: 0;
    left: 30px;
  right: auto;
  top: auto;
    bottom: -40px;
    border: 20px solid;
    border-color: #666 transparent transparent #666;
}
.tri-right.btm-left-in:after{
    content: ' ';
    position: absolute;
    width: 0;
    height: 0;
    left: 38px;
  right: auto;
  top: auto;
    bottom: -20px;
    border: 12px solid;
    border-color: lightyellow transparent transparent lightyellow;
}

/*Right triangle, placed bottom right side slightly in*/
.tri-right.border.btm-right-in:before {
    content: ' ';
    position: absolute;
    width: 0;
    height: 0;
  left: auto;
    right: 30px;
    bottom: -40px;
    border: 20px solid;
    border-color: #666 #666 transparent transparent;
}
.tri-right.btm-right-in:after{
    content: ' ';
    position: absolute;
    width: 0;
    height: 0;
  left: auto;
    right: 38px;
    bottom: -20px;
    border: 12px solid;
    border-color: lightyellow lightyellow transparent transparent;
}
/*
    left: -8px;
  right: auto;
  top: auto;
    bottom: -40px;
    border: 32px solid;
    border-color: transparent transparent transparent #666;
    left: 0px;
  right: auto;
  top: auto;
    bottom: -20px;
    border: 22px solid;
    border-color: transparent transparent transparent lightyellow;

/*Right triangle, placed bottom right side slightly in*/
.tri-right.border.btm-right:before {
    content: ' ';
    position: absolute;
    width: 0;
    height: 0;
  left: auto;
    right: -8px;
    bottom: -40px;
    border: 20px solid;
    border-color: #666 #666 transparent transparent;
}
.tri-right.btm-right:after{
    content: ' ';
    position: absolute;
    width: 0;
    height: 0;
  left: auto;
    right: 0px;
    bottom: -20px;
    border: 12px solid;
    border-color: lightyellow lightyellow transparent transparent;
}

/* Right triangle, right side slightly down*/
.tri-right.border.right-in:before {
    content: ' ';
    position: absolute;
    width: 0;
    height: 0;
  left: auto;
    right: -40px;
  top: 30px;
    bottom: auto;
    border: 20px solid;
    border-color: #666 transparent transparent #666;
}
.tri-right.right-in:after{
    content: ' ';
    position: absolute;
    width: 0;
    height: 0;
  left: auto;
    right: -20px;
  top: 38px;
    bottom: auto;
    border: 12px solid;
    border-color: lightyellow transparent transparent lightyellow;
}

/* Right triangle placed top right flush. */
.tri-right.border.right-top:before {
    content: ' ';
    position: absolute;
    width: 0;
    height: 0;
  left: auto;
    right: -40px;
  top: -8px;
    bottom: auto;
    border: 32px solid;
    border-color: #666 transparent transparent transparent;
}
.tri-right.right-top:after{
    content: ' ';
    position: absolute;
    width: 0;
    height: 0;
  left: auto;
    right: -20px;
  top: 0px;
    bottom: auto;
    border: 20px solid;
    border-color: lightyellow transparent transparent transparent;
}

/* talk bubble contents */
.talktext{
  padding: 1em;
    text-align: left;
  line-height: 1.5em;
}
.talktext p{
  /* remove webkit p margins */
  -webkit-margin-before: 0em;
  -webkit-margin-after: 0em;
}

站长提示:
1. 苦力吧素材官方QQ群:950875342
2. 平台上所有素材资源,需注册登录会员方能正常下载。
3. 会员用户积极反馈网站、素材资源BUG或错误问题,每次奖励2K币
4. PHP源码类素材,如需协助安装调试,或你有二次开发需求,可联系苦力吧客服。
5. 付费素材资源,需充值后方能下载,如有任何疑问可直接联系苦力吧客服
相关资源 / 其它&杂项

基于CSS3手机移动端单页触摸滑动特效代码

page.js是一个单页模拟触屏滑动插件,用于在单页网站和单页web网页上实现基于CSS3的平滑页面转换效果,带点击按钮抖动特效。
  其它&杂项
 6622  0

jquery页面加载完所有img图片后再执行代码特效

一款图片成功加载后再执行插件,可在页面DOM中的所有图片(含img或背景图片)成功加载后运行代码。
  其它&杂项
 5381  0

jquery基于bootstrap可自由切换的暗亮模式

一款响应式页面白天黑夜模式插件,鼠标点击切换按钮,可自由切换到白天(白色背景)夜晚(黑色背景)模式,超实用。
  其它&杂项
 8434  0

jquery轻量级浮动置顶粘性侧边栏插件

一个超小的jQuery粘性侧边栏插件,页面滚动条滚动时侧边栏模块始终浮动可见,置于顶部,很实用。
  其它&杂项
 4382  0

评论数(3) 回复有机会获得K币 用户协议

    gutou8880
    2024-05-16 21:13:17
    铁头de科技0
    2024-01-18 14:22:53
    跳动的灵魂0
    2023-12-22 15:09:26
😀
  • 😀
  • 😊
  • 😂
  • 😍
  • 😑
  • 😷
  • 😵
  • 😛
  • 😣
  • 😱
  • 😋
  • 😎
  • 😵
  • 😕
  • 😶
  • 😚
  • 😜
  • 😭
发表评论