小编Ama*_*tha的帖子

如何在反应应用程序中为css中的伪元素获取Font Awesome图标

以下是我的 css 文件:

@import '~font-awesome/css/font-awesome.min.css';

.btn {
  position: relative;
  text-align: center;
  border-radius: 100% 0 0 100% !important;
  height: 35px;
  width: 35px;
  font-size: 12px !important;
  background-color: white !important;
  color: dodgerblue !important;
  border-color: dodgerblue !important;
  transition: all 0.2s cubic-bezier(0.075, 0.82, 0.165, 1);
}

#add-btn.btn::after {
  position: absolute;
  font-family: 'Font Awesome 5 Free';
  content: '\f101';
  font-size: 15px;
}
Run Code Online (Sandbox Code Playgroud)

这是我的 jsx 文件。

import React, { Component } from 'react';
import { Card, CardImg, CardText, CardBody, CardTitle, CardSubtitle, Button } from 'reactstrap';
// import 'font-awesome/css//font-awesome.min.css'; …
Run Code Online (Sandbox Code Playgroud)

css font-awesome reactjs

5
推荐指数
1
解决办法
5426
查看次数

在滤镜内制作 feDropShadow 动画

我有以下代码,我想feDropShadow在里面制作动画defs

@import url("https://fonts.googleapis.com/css?family=Open+Sans:300&display=swap");

*,
*::before,
*::after {
	box-sizing: border-box;
	position: relative;
}

html,
body {
	padding: 0;
	margin: 0;
	width: 100%;
	height: 100%;
}

body {
	display: flex;
	justify-content: center;
	align-items: center;
	font-family: "Open Sans", sans-serif;
}

:root {
	--easing: cubic-bezier(0.87, 0.08, 0.23, 0.91);
	--duration: 0.3s;
	--pink: #770946;
}

#app {
	height: 100vh;
	width: 100%;
	background: #1e0238;
	position: relative;
	overflow: hidden;
}

.circle-pink {
	transform: scale(1);
	fill: none;
	stroke: var(--pink);
	stroke-width: 6;
}

.circle-fill {
	transform: scale(1); …
Run Code Online (Sandbox Code Playgroud)

html svg svg-animate svg-filters

3
推荐指数
1
解决办法
483
查看次数

标签 统计

css ×1

font-awesome ×1

html ×1

reactjs ×1

svg ×1

svg-animate ×1

svg-filters ×1