以下是我的 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) 我有以下代码,我想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)