在做網站要求越來越高,好不容易把顏色和布局弄得很高大上,結果人家說網站沒效果,太單一,死板,我真想:
懂不懂!會不會玩!
可結果呢
以下是我自己常用的動態效果庫,自己使用的時候也很方便,推薦給大家,如果大家有更好的效果圖記得留言告訴我哦,
WOW.js
(讓頁面變得更有趣)
Parallax.js
(輕量級的的視差引擎)
Html5ToolTips.js
(輕量級的提示框)
FullPage.Js
(全屏滾動插件)
aos.js
(頁面滾動元素動畫)
Sidebar Transitions
(邊欄過渡效果)
jInvertScroll
(橫向滾動插件)
0級怪物免爆要求的防御是525點,除去滿級后自帶的400點防御,剩余的125點需要通過裝備等途徑提供,前期打五人本的時候優先堆到125。
團本的boss則需要540點防御,也就是需要通過裝備堆到140。
巫妖王之怒版本,有部分boss存在招架加速平砍的機制,所以精準也是很需要堆的屬性,對于防戰而言,需要6.5%(即26精準)來消除躲閃,14%(即56精準)來消除招架。在條件允許的情況下,盡量保證8%(263點命中等級)的物理命中。
至于其他防御屬性,就看需要面對的boss類型了。一般來說如果boss的傷害類型主要為魔法,那么盡量堆高血量。如果是物理傷害,則可以盡量堆高護甲、格擋、躲閃、招架。當然對于防戰來說,由于精確格擋、盾牌反傷等天賦的存在,使得格擋的收益非常高。
推薦宏:
沖鋒切防御宏
#showtooltip
/cast [stance:1]沖鋒
/cast 防御姿態
復仇英勇宏
#showtooltip
/cast 復仇
/cast 英勇打擊
復仇瞬劈宏
#showtooltip
/cast 復仇
/cast 瞬劈斬
群拉復仇
#showtooltip 復仇
/startattack
/cast [nostance:2] 防御姿態;
/cast 復仇
/cast !順劈斬
單拉復仇
#showtooltip 復仇
/startattack
/cast [nostance:2] 防御姿態;
/cast 復仇
/cast !英勇打擊
#showtooltip 盾牌格擋
/startattack
/cast [nostance:2] 防御姿態;
/cast 盾牌格擋
群拉雷霆宏
#showtooltips
/castsequence reset=30 雷霆一擊,挫志怒吼,雷霆一擊,雷霆一擊,雷霆一擊
/cast [nostance:2] 防御姿態;
群拉橫掃宏
#showtooltip 橫掃攻擊
/cast 橫掃攻擊
/cast 反擊風暴
/startattack
/cast [nostance:1] 戰斗姿態;
群嘲盾墻宏
#showtooltip 挑戰怒吼
/startattack
/cast [nostance:2]防御姿態;
/cast 挑戰怒吼
/cast 盾墻
沖鋒攔截宏 綁定了 英勇投擲
#showtooltip [stance:2] 援護; [nocombat] 沖鋒; [combat] 攔截
/cast [@mouseover, help] 防御姿態; [nocombat] 戰斗姿態; [combat] 狂暴姿態
/cast [@mouseover, help] 援護; [nocombat] 沖鋒; [combat,stance:3] 攔截
/cast [combat,stance:3] 血性狂暴
/startattack
/cast 英勇投擲
盾擊打斷宏
#showtooltip 盾擊
/startattack
/cast [nostance:2] 防御姿態;
/cast 盾擊
鼠標指向嘲諷宏
#showtooltip 嘲諷
/cast [nostance:2] 防御姿態;
/cast [target=mouseover,nomodifier,exists,harm] 嘲諷;嘲諷
狂暴魯莽宏
#showtooltip 魯莽
/startattack
/cast [nostance:3] 狂暴姿態;
/cast 魯莽
屬性優先級
防等540免爆,達到540以后屬性優先級排列如下:
耐力>護甲>防御等級>躲閃=招架>格擋等級>格擋值
From 百度百科:甘特圖(Gantt chart)又稱為橫道圖、條狀圖(Bar chart)。其通過條狀圖來顯示項目,進度,和其他時間相關的系統進展的內在關系隨著時間進展的情況。
yarn add dhtmlx-gantt
復制代碼
import 'dhtmlx-gantt';
import 'dhtmlx-gantt/codebase/dhtmlxgantt.css';
import 'dhtmlx-gantt/codebase/ext/dhtmlxgantt_marker.js';
import 'dhtmlx-gantt/codebase/ext/dhtmlxgantt_tooltip.js';
import 'dhtmlx-gantt/codebase/locale/locale_cn.js';
import * as React from 'react';
import { getGanttConfigByZoomValue } from '../../utils/milestone.lib';
import Toolbar from './components/Toolbar';
import * as styles from './index.module.less';
export default class Gantt extends React.Component<any> {
state = {
currentZoom: 'Days', // 默認按日維度展示
isMount: false,
};
private ganttContainer: any;
componentWillReceiveProps (nextProps: any) {
this.generateGantt();
this.setState({ isMount: true });
}
handleZoomChange = (zoom: string) => {
this.setState({ currentZoom: zoom }, () => {
this.generateGantt();
});
}
async generateGantt () {
const { ganttData } = this.props;
if (this.state.isMount) { // 若不加判斷,首次使用會報錯
gantt.clearAll(); // 移除所有任務,否則更新時任務會疊加
}
this.setConfig(); // 添加配置
gantt.init(this.ganttContainer); // 初始化 dhtmlxGantt 到 ganttContainer 容器中
gantt.parse(ganttData); // 將數據注入到甘特圖
}
setConfig () {
...
}
setZoom (value: string) {
gantt.config = {
...gantt.config,
...getGanttConfigByZoomValue(value), // 根據維度展示不同的日期格式
};
}
renderContent () {
const { currentZoom } = this.state;
return (
<React.Fragment>
<div className={styles.zoomBar}>
<Toolbar zoom={currentZoom} onZoomChange={this.handleZoomChange} />
</div>
<div className={styles.gantt}}>
<div
ref={input => {
this.ganttContainer = input;
}}
style={{ width: '100%', height: '100%' }}
/>
</div>
</React.Fragment>
);
}
render () {
return (
<div className={styles.ganttWrapper}>
{this.renderContent()}
</div>
);
}
}
復制代碼
gantt.config.readonly = true;
gantt.init(this.ganttContainer);
復制代碼
gantt.config.readonly = true; // 開啟只讀模式
select_task: false, // 禁止任務被選中,
gantt.init(this.ganttContainer);
復制代碼
gantt.config.columns = [
{
name: 'text',
label: '里程碑節點',
width: 280,
template: function (obj: any) {
return `節點:${obj.text}`; // 通過 template 回調可以指定返回內容值
},
},
];
gantt.init(this.ganttContainer);
復制代碼
// 自定義tooltip內容
gantt.templates.tooltip_text = function (start: Date, end: Date, task: any) {
const t = gantt;
const output = `<b>里程碑:</b>${task.text}<br/><b>狀態:</b>${
MILESTONE_STATE_MAP[task.state]
}<br/><b>計劃開始時間:</b>${t.templates.tooltip_date_format(
start,
)}<br/><b>計劃結束時間:</b>${t.templates.tooltip_date_format(end)}`;
return output;
},
// 添加tooltip
gantt.attachEvent('onGanttReady', function () {
var tooltips = gantt.ext.tooltips;
tooltips.tooltip.setViewport((gantt as any).$task_data);
});
復制代碼
const { online_date, offline_date } = this.props;
// 今日紅線
let today = new Date(`${getEndOfDate()}`); // getEndOfDate 為獲取今天結束時間的方法
gantt.addMarker({
start_date: today,
css: 'today',
text: '今日',
});
// 項目開始時間
if (online_date) {
gantt.addMarker({
start_date: online_date,
css: 'projectStartDate',
text: '項目開始',
});
}
// 項目結束時間
if (offline_date) {
gantt.addMarker({
start_date: offline_date,
css: 'projectEndDate',
text: '項目結束',
});
}
復制代碼
.projectStartDate, .projectEndDate {
background: #00bcd4;
}
復制代碼
task_class: function (start: Date, end: Date, task: any) {
return `milestone-${task.state}`; // task.state值為default/unfinished/finished/canceled其中一種
},
復制代碼
.milestone-default {
border: none;
background: rgba(0, 0, 0, 0.45);
}
.milestone-unfinished {
border: none;
background: #5692f0;
}
.milestone-finished {
border: none;
background: #84bd54;
}
.milestone-canceled {
border: none;
background: #da645d;
}
復制代碼
// 突出周末顏色
(gantt.templates as any).timeline_cell_class = function (item: any, date: Date): string {
if (date.getDay() === 0 || date.getDay() === 6) {
return 'weekend';
}
return '';
};
復制代碼
// 突出周末顏色
const disableHighlight =
this.state.currentZoom === 'Years' || this.state.currentZoom === 'Months';
(gantt.templates as any).timeline_cell_class = function (item: any, date: Date): string {
if (!disableHighlight && (date.getDay() === 0 || date.getDay() === 6)) {
return 'weekend';
}
return '';
};
復制代碼
export function getGanttConfigByZoomValue (value: string) {
switch (value) {
case 'Hours':
return {
scale_unit: 'day',
scale_height: 50,
min_column_width: 30,
date_scale: '%Y-%m-%d',
subscales: [
{
unit: 'hour',
step: 1,
date: '%H',
},
],
};
case 'Days':
return {
scale_unit: 'week',
scale_height: 50,
min_column_width: 70,
date_scale: '%Y年 %W周',
subscales: [
{
unit: 'day',
step: 1,
date: '%m-%d',
},
],
};
case 'Months':
return {
scale_unit: 'month',
scale_height: 50,
min_column_width: 70,
date_scale: '%Y-%m',
subscales: [
{
unit: 'week',
step: 1,
date: '%W周',
},
],
};
case 'Years':
return {
scale_unit: 'year',
scale_height: 50,
min_column_width: 70,
date_scale: '%Y年',
subscales: [
{
unit: 'month',
step: 1,
date: '%M',
},
],
};
default:
return {};
}
}
復制代碼
以上內容如有遺漏錯誤,歡迎留言 ??指出,一起進步
如果覺得本文對你有幫助,留下你寶貴的
轉載鏈接:https://juejin.im/post/5e7ffd56f265da794e526102
*請認真填寫需求信息,我們會在24小時內與您取得聯系。